Go to Post I disagree with the "letting them fail" philosophy. - wireties [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-10-2003, 11:41
CD47-Bot CD47-Bot is offline
Registered User
FRC #0047 (Chief Delphi)
 
Join Date: Dec 2002
Location: Pontiac, MI
Posts: 1,616
CD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond reputeCD47-Bot has a reputation beyond repute
Q&A Discuss: Quick C Programming Q

Thread created automatically to discuss a question in the Q&A Forum.

Quick C Programming Q
Quote:
Ok, I'm making the switch from Pascal to C, and I dun no the name of the program I need to write C (like you use turbo pascal to write in pascal). If someone could give me the name of a program it would be much appreciated. Thnx
Reply With Quote
  #2   Spotlight this post!  
Unread 23-10-2003, 11:43
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
Or you could not spend copious amounts of money on a compiler and get LCC, DevC++ by Bloodshed Software, and numerous others that are out there.

Borland's Compiler is free, but their IDE is not...

Just because it's Borland or Microsoft doesn't mean it's the best, but I must say that they are very nice (and expensive) IDE's...
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
Reply With Quote
  #3   Spotlight this post!  
Unread 15-11-2003, 15:55
Team852 (DB) Team852 (DB) is offline
Registered User
#0852 (The Athenian Robotics Collective)
 
Join Date: Jan 2003
Location: Danville, CA
Posts: 9
Team852 (DB) is an unknown quantity at this point
Compilers

If you've had any experience on the terminal (command line), just use the GNU GCC (3.0?) compiler. If you have a UNIX system, it comes with this. The same for Macintosh (OS X). Otherwise, do a search and download it.

GCC is free, and I would say it's the most widely-used compiler out there right now.

Most UNIX professionals use GCC as part of any IDEs they use, as well as anyone programming on Mac OS X (Project Builder/XCode uses GCC as its compiler).


Note however, that it is not an 'integrated development environment'. It is only a compiler, so you have to learn how to write code in individual files, bring in libraries, and then compile it using either a 'make' file (unix convention), or typing everything in on the command line yourself.

You could also go out and find an integrated development environment. Most of these cost real money. I must say that the Microsoft IDEs are not organized in an intuitive way. I haven't seen any of the others at this point.


Note: You cannot use a third party IDE (or even GCC) to program for the Microchip PIC18. Those IDEs and compilers are configured to compile code for your computer, not the microchip.

They will help you to learn C and figure out how things work, but you will have to use the MPLAB IDE and C18 to write code for the microchip PIC.


I would recommend this book:

The C Programming Language, 2nd Edition, by Brian W. Kernighan and Dennis M. Ritchie.

It defines the ANSI Standard, all its conventions, and the standard UNIX libraries.

You can get a copy via Amazon.com here:

http://www.amazon.com/exec/obidos/tg...lance&n=507846
__________________
- DB
Reply With Quote
  #4   Spotlight this post!  
Unread 15-11-2003, 17:45
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
I love GCC with a passion, but newbies might find it difficult to get the concept of compiling then linking the files...

When GCC compiles, if you have more than one file, it doesn't make them into an executable. You typically end up with a .o file which you have to use a linker to link into an executable...

I'd suggest if you're on Win32 just stick to DevC++ (which has an IDE + linker) or LCC (IDE + linker). If you want to use the console, stick to DGJPP (the DOS port of GCC which has an IDE + linker built right in ).
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
Reply With Quote
  #5   Spotlight this post!  
Unread 16-11-2003, 01:16
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
This is slightly off-topic, but does anyone know if the compiler for the Robot Controller can be run on the command line without the IDE? I'd rather use my Eclipse IDE, configured to use that (if I can make it use minGW and SDL I think it'll use anything, man that was a pain! )

And Dev-C++ is good and comes with minGW, which is a windows ports of gcc IIRC.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
Reply With Quote
  #6   Spotlight this post!  
Unread 16-11-2003, 02:19
Noah's Avatar
Noah Noah is offline
Code Monkey
#0861 (The Gondobots)
Team Role: Programmer
 
Join Date: Apr 2002
Location: Venice, California
Posts: 139
Noah has a spectacular aura aboutNoah has a spectacular aura about
Send a message via AIM to Noah
My assumption is that it saves the files you work with as plain text .c and .h files, and therefore can be opened, manipulated, and other such wonderful things before being reopened in the IDE and compiled. I doubt that they have a command line utility.
__________________
"It's broken? NOOAAHH!!! This is your doing, isn't it!"

"We can fix it in the software!"
"It's a BROKEN GEAR!"
Reply With Quote
  #7   Spotlight this post!  
Unread 16-11-2003, 11:16
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Quote:
Originally posted by Matt Krass
This is slightly off-topic, but does anyone know if the compiler for the Robot Controller can be run on the command line without the IDE? I'd rather use my Eclipse IDE, configured to use that (if I can make it use minGW and SDL I think it'll use anything, man that was a pain! )
Yes, it's possible. Wildstang is using cygwin & make for our work with the EDU and will probably use it when writing code for the real robot. You can get the Makefile from the zip in Dave's post about using last year's EDU & OI: http://www.chiefdelphi.com/forums/sh...threadid=22652. It should have all the info you need for using the compiler with the command line.

Mike
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Compatition Angela06 Programming 30 08-04-2005 23:12
Quick C Programming Q mrman15 General Forum 2 23-10-2003 08:50
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
pbasic programming punarhero Programming 4 21-01-2002 23:32


All times are GMT -5. The time now is 23:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi