aspose file tools*
The moose likes C / C++ and the fly likes Advise on C Compiler. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » C / C++
Bookmark "Advise on C Compiler." Watch "Advise on C Compiler." New topic
Author

Advise on C Compiler.

Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

What would be the suitable compiler for C in the Engineering perspective? I mean, to do floating point arithmetic, etc.

Thanks!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Trivikram Kamat
Ranch Hand

Joined: Sep 26, 2010
Posts: 155
GNU C Compiler is like a standard C Compiler.


OCPJP6
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
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

Joined: Oct 19, 2010
Posts: 5
I think Turbo C++ compiler is the best one according to Engineering perspective
rohan yadav
Ranch Hand

Joined: Oct 13, 2009
Posts: 156
Also Look out for gcc compiler if you are interested in system programming..


Sage of The Monstrous Toad of Mount Myoboku
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38805
    
  23
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

Joined: Jul 10, 2007
Posts: 44
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

Joined: Dec 05, 2008
Posts: 23
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/


Pradip.B
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38805
    
  23
Please quote a makefile tutorial, so the original poster can learn about it.
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Welcome Trivikram, Lester, mahesh, rohan, Campbell Ritchie, Daniel, Pradip for your valuable advices.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14146
    
  18

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
jQuery in Action, 2nd edition
 
subject: Advise on C Compiler.