Society of Robots
     | Robot Forum | Robot Tutorials | Robot FAQ |
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2009, 08:42:35 PM

Login with username, password and session length
Search:     Advanced search
SoR Robot Chat every friday night. Join us!
http://www.societyofrobots.com/robotforum/chat/

Robot Forum
72,665 Posts in 9,267 Topics by 5,290 Members
Latest Member: robertelson
* Home Help Help Login Register
0 Members and 1 Guest are viewing this topic.
Pages: [1] Print
Author Topic: C compiler recommendation? (not microcontroller)  (Read 5668 times)
AdminTopic starter
Administrator
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 8,610



View Profile WWW
« on: August 19, 2007, 08:22:05 AM »

I need to do some robot navigation testing that would cause too much trouble to do on a microcontroller.

I basically want to run the code on my laptop and fiddle with the output until I like it. Then I can port it over to a microcontroller.

So the question is, does anyone have any recommendations for a C compiler? I used to have a good one but I cant remember what it was. I think Borland Turbo C?

Any recommendations?
Logged

cybcode
Jr. Member
**

Helpful? 0
Offline Offline

Posts: 18


View Profile
« Reply #1 on: August 19, 2007, 08:50:57 AM »

There are so many. Are you looking for one for Windows?

lcc-win32 is easy to set up and free, but can only compile pure C as far as I know, not C++ (http://www.cs.virginia.edu/~lcc-win32/).
Open Watcom is also quite easy to set up and free (http://www.openwatcom.org/).
There is of course also MS Visual C++ Express (http://msdn2.microsoft.com/en-us/express/default.aspx).
MingW is a UNIX style development system (for Windows) with GCC and other related tools (http://www.mingw.org/).
Cygwin is another such system (http://www.cygwin.com/).

There's also Turbo C++ but I haven't used it (http://www.turboexplorer.com/cpp).
Logged
snow
Full Member
***

Helpful? 0
Offline Offline

Posts: 73


View Profile
« Reply #2 on: August 20, 2007, 07:20:34 AM »

I like Dev-C++ (http://www.bloodshed.net/devcpp.html). It's an IDE that comes with Mingw (gcc) compiler.

(F9 to compile & run  Wink)
Logged
AdminTopic starter
Administrator
Supreme Robot
*****

Helpful? 62
Offline Offline

Posts: 8,610



View Profile WWW
« Reply #3 on: August 20, 2007, 07:28:00 AM »

You guys posted a lot of C++ compilers . . . can these also do C?

The program Im writing is just for code verification for another program Im writing for a microcontroller, so I want it to be in C.
Logged

cybcode
Jr. Member
**

Helpful? 0
Offline Offline

Posts: 18


View Profile
« Reply #4 on: August 20, 2007, 08:09:39 AM »

Generally, every C program will compile with a C++ compiler. It doesn't work the other way around. C++ is C with some extensions. If you plan to move your code back to a pure C compiler eventually (e.g. for the microcontroller), you should make sure you don't use any C++ extensions while developing with the C++ compiler.
Logged
JesseWelling
Expert Roboticist
Supreme Robot
*****

Helpful? 0
Offline Offline

Posts: 707


Only You Can Build A Robot!


View Profile
« Reply #5 on: August 20, 2007, 09:35:27 AM »

I like gcc.... Grin
Logged
DomoArigato
Full Member
***

Helpful? 1
Offline Offline

Posts: 54


View Profile
« Reply #6 on: August 21, 2007, 09:09:49 AM »

I've set up eclipse + mingw(GCC) without much hassle.  It works well for me.
Logged
Robotboy86
Robot Overlord
****

Helpful? 0
Offline Offline

Posts: 139


View Profile
« Reply #7 on: August 25, 2007, 04:51:30 PM »

gcc for the win! Smiley
Logged
Pages: [1] Print 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
picc18 compiler
Software
paulstreats 2 1850 Last post October 01, 2007, 12:02:28 PM
by Admin
Compiler problems
Software
wiley89 14 1919 Last post January 09, 2008, 01:28:34 AM
by Rebelgium
ATmega8 C Compiler
Software
vonlark 2 1860 Last post January 28, 2008, 07:09:19 AM
by benji
a/d c18 compiler
Software
junior000 6 2601 Last post February 16, 2008, 04:05:50 PM
by Admin
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Advertise on this Forum