A good compiler please....

N

Nikhil Bokare

Can anyone suggest me a good, small, easy to use compiler which
follows ANSI C standards?

I use TurboC for the sole reason that I am quite used to it. It does
not follow some of the ANSI C standards.
 
J

jacob navia

Nikhil said:
Can anyone suggest me a good, small, easy to use compiler which
follows ANSI C standards?

I use TurboC for the sole reason that I am quite used to it. It does
not follow some of the ANSI C standards.

32 bit code generation:
http://www.cs.virginia.edu/~lcc-win32

compiler+ide+debugger+project management+
resource editor

Approx 5MB download

jacob
 
R

Richard

jacob navia said:
Yes. lcc is smaller, no installation problems, and it is a C compiler,
not a C++ compiler that can also compile C.

That is totally unfair.

Gcc is the Gnu Compiler Collection. Formally known as the Gnu C
Compiler.

The C front end to Gcc is just that - a C front end.
 
T

Tor Rustad

Can anyone suggest me a good, small, easy to use compiler which
follows ANSI C standards?

I use TurboC for the sole reason that I am quite used to it. It does
not follow some of the ANSI C standards.

Turbo C was one of my first compilers too, and I did pick up some bad
habbits from it. I haven't used it for a very long time, but you could
check if you invoke it in ANSI mode or not.

A good C compiler is gcc, and if you start using lint too, you a lot
of warnings.
 
R

Richard

Tor Rustad said:
Turbo C was one of my first compilers too, and I did pick up some bad
habbits from it. I haven't used it for a very long time, but you could
check if you invoke it in ANSI mode or not.

A good C compiler is gcc, and if you start using lint too, you a lot
of warnings.

I dont know why but in Linux land "lint" seems to have all but
vanished. There is lclint but this is not in the standard Debian/Ubuntu
repositories.

The Gcc options -Wall and -pedantic can help a lot.

Although off topic, I would be interested to hear what other C
programmers here use for "lint"'like examination of theirs and others
code.
 
T

Tor Rustad

I dont know why but in Linux land "lint" seems to have all but
vanished. There is lclint but this is not in the standard Debian/Ubuntu
repositories.

The Gcc options -Wall and -pedantic can help a lot.

and -ansi
Although off topic, I would be interested to hear what other C
programmers here use for "lint"'like examination of theirs and others
code.

I use splint myself, which available both on Win32 and Linux.

http://www.splint.org/

on Ubuntu just type

sudo apt-get install splint
 
J

Jack Klein

I dont know why but in Linux land "lint" seems to have all but
vanished. There is lclint but this is not in the standard Debian/Ubuntu
repositories.

The Gcc options -Wall and -pedantic can help a lot.

Although off topic, I would be interested to hear what other C
programmers here use for "lint"'like examination of theirs and others
code.

PC Lint http://www.gimpel.com

A commercial product, but very reasonably priced for what it does.

I haven't tried splint, so I don't know if it is as good.

Anyone who makes a living programming in C who does not use a lint, or
one of the more advanced and really expensive static analysis tools on
the market, only thinks he/she is a professional programmer.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
 
F

Francine.Neary

Anyone who makes a living programming in C who does not use alint, or
one of the more advanced and really expensive static analysis tools on
the market, only thinks he/she is a professional programmer.

I have to say I disagree with this. I think lint really blows :(

My compiler is already extremely picky with -W -ansi -pedantic, but
with lint you get screen after screen of spurious warnings even for a
100-line toy program. Sorting out all the cruft from the lint output
for a production-sized program would be an inconceivable burden.
 
S

Sharath

I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.

I mean Dev C++ IDE with MinGW(gcc) compiler. I got confused with
Cygwin and MinGW, anyway both of them are configurable with Dev C++.
 
O

osmium

The original poster was asking for a C ide, not a C++ IDE

Then for DevC the OP must type a file name of the form xxx.c when he creates
a new ffile. Appending ".c" makes it a C compiler.
 
S

Sharath

The original poster was asking for a C ide, not a C++ IDE

No. He asked for a C compiler, not IDE. I suggested
Dev C++ IDE with MinGW compiler(which is a gcc port to
Windows and has both C and C++ compilers). And Dev C++
is an IDE for both C and C++.

-Sharath
 
R

Richard

Sharath said:
No. He asked for a C compiler, not IDE. I suggested
Dev C++ IDE with MinGW compiler(which is a gcc port to
Windows and has both C and C++ compilers). And Dev C++
is an IDE for both C and C++.

-Sharath

He asked for "easy to use" and compared with turbo C which kind of hints
at an IDE too. You could do a lot worse than Eclipse with the CDT plugin
for a C IDE which in turn uses gcc as a compiler backend. It has very
good Intellisense like functionality and code cross referencing.

Ideal for a beginner.

Eclipse "know how" is never a bad thing to have. Yes, its a bit on the
"heavy" side, but all (spit) Java apps are ...
 
T

Tor Rustad

I have to say I disagree with this. I think lint really blows :(

My compiler is already extremely picky with -W -ansi -pedantic, but
with lint you get screen after screen of spurious warnings even for a
100-line toy program. Sorting out all the cruft from the lint output
for a production-sized program would be an inconceivable burden.

I don't get screen after screen with lint warnings....

If Sun can keep a kernel lint clean, then you can do the same:

19. You have the following additional responsibilities when integrating
changes to
the kernel:

o Your changes must not introduce any lint errors. See tips on keeping
the kernel lint clean at /shared/ON/general_docs/lint_tips.txt.

o For the kernel, changes must conform to the C coding style.

http://www.opensolaris.org/os/project/muskoka/on_dev/golden_rules.txt
 
N

Nikhil Bokare

No. He asked for a C compiler, not IDE. I suggested
Dev C++ IDE with MinGW compiler(which is a gcc port to
Windows and has both C and C++ compilers). And Dev C++
is an IDE for both C and C++.

-Sharath

Thanks for all the help.
I would also like to have an IDE.
But the basic requirement is it should work perfectly according to
ANSI standards in WindowsXP environtment.
 
F

Flash Gordon

Nikhil Bokare wrote, On 03/06/07 09:30:
Thanks for all the help.
I would also like to have an IDE.
But the basic requirement is it should work perfectly according to
ANSI standards in WindowsXP environtment.

If you use the correct options (-ansi -pedantic) all of the gcc based
systems above will conform to the C89 standard and I believe they will
all run on Windows XP.

You could also look at these pages
http://clc-wiki.net/wiki/C_resources:Compilers
http://clc-wiki.net/wiki/C_resources:IDEs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top