Author Topic: C compiler recommendation? (not microcontroller)  (Read 16874 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
C compiler recommendation? (not microcontroller)
« on: August 19, 2007, 09: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?

Offline cybcode

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: C compiler recommendation? (not microcontroller)
« Reply #1 on: August 19, 2007, 09: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).

Offline snow

  • Full Member
  • ***
  • Posts: 73
  • Helpful? 0
Re: C compiler recommendation? (not microcontroller)
« Reply #2 on: August 20, 2007, 08: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  ;))

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: C compiler recommendation? (not microcontroller)
« Reply #3 on: August 20, 2007, 08: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.

Offline cybcode

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: C compiler recommendation? (not microcontroller)
« Reply #4 on: August 20, 2007, 09: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.

Offline JesseWelling

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 707
  • Helpful? 0
  • Only You Can Build A Robot!
Re: C compiler recommendation? (not microcontroller)
« Reply #5 on: August 20, 2007, 10:35:27 AM »
I like gcc.... ;D

Offline DomoArigato

  • Full Member
  • ***
  • Posts: 54
  • Helpful? 1
Re: C compiler recommendation? (not microcontroller)
« Reply #6 on: August 21, 2007, 10:09:49 AM »
I've set up eclipse + mingw(GCC) without much hassle.  It works well for me.

Offline Robotboy86

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 0
Re: C compiler recommendation? (not microcontroller)
« Reply #7 on: August 25, 2007, 05:51:30 PM »
gcc for the win! :)

 


Get Your Ad Here

data_list