• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advise on C Compiler.

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What would be the suitable compiler for C in the Engineering perspective? I mean, to do floating point arithmetic, etc.

Thanks!
 
Trivikram Kamat
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GNU C Compiler is like a standard C Compiler.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "suitable"? C -as well as C++, and their respective core libraries- are standardized, so that's no way to differentiate between compilers.
 
k. mahesh kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Turbo C++ compiler is the best one according to Engineering perspective
 
rohan yadav
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also Look out for gcc compiler if you are interested in system programming..
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C isn't completely standardised; for example the result ofis undefined and you can get different outputs from different compilers.

As an IDE, I like Dev-C++ from bloodshed.net.
 
Daniel Trebbien
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:C isn't completely standardised; for example the result ofis undefined and you can get different outputs from different compilers.


Actually, this is an example of standard undefined behavior; the C standard explicitly specifies that the effect of i = i++ is undefined: "Between the previous and next sequence point an object shall have its stored value modified at most once by the evaluation of an expression. ... The behavior is undefined in the following circumstances: A 'shall' or 'shall not' requirement that appears outside of a constraint is violated. ..."

It is, however, correct to say that some behaviors are not completely specified. Annex J.1 to the Standard, titled "Unspecified behavior", lists many of the behaviors that are not specified.
 
Pradip Bhattacharya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will also recommend GCC. And IDE can be anything from Notepad++ to eclipse . I would highly recommend to use Makefile as it will you help in understanding the building process. Check out this link for makefile tutorial. It explains basics of makefile and gcc http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/
 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please quote a makefile tutorial, so the original poster can learn about it.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Trivikram, Lester, mahesh, rohan, Campbell Ritchie, Daniel, Pradip for your valuable advices.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15441
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GCC is also free - if you want a free C compiler there's no need to use a very old version of Turbo C. GCC is available for many platforms, including Windows.

If you specifically want a free C / C++ compiler for Windows, then Visual C++ Express Edition from Microsoft is nice.

Long ago I used to play with Turbo Pascal (around 1992, on my 20 MHz 386SX with MS-DOS...). It had the same IDE and text-based graphics library as you had with Turbo C.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic