473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

A good compiler please....

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.

May 31 '07 #1
20 1543
Nikhil Bokare wrote:
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
May 31 '07 #2
On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
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.
see this could be useful to download. I don't know more about this
http://www.cs.princeton.edu/software/lcc/

May 31 '07 #3

Guru Jois wrote:
On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
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.

see this could be useful to download. I don't know more about this
http://www.cs.princeton.edu/software/lcc/
why lcc? why not gcc?
http://www.mingw.org/download.shtml
or here is a list
http://www.cpax.org.uk/prg/portable/...#FreeCompilers

is lcc better in some way?

May 31 '07 #4
nszabolcs wrote:
Guru Jois wrote:
>On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
>>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.
see this could be useful to download. I don't know more about this
http://www.cs.princeton.edu/software/lcc/

why lcc? why not gcc?
http://www.mingw.org/download.shtml
or here is a list
http://www.cpax.org.uk/prg/portable/...#FreeCompilers

is lcc better in some way?
Yes. lcc is smaller, no installation problems, and it is a C compiler,
not a C++ compiler that can also compile C.
May 31 '07 #5
jacob navia <ja***@jacob.remcomp.frwrites:
nszabolcs wrote:
>Guru Jois wrote:
>>On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
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.
see this could be useful to download. I don't know more about this
http://www.cs.princeton.edu/software/lcc/

why lcc? why not gcc?
http://www.mingw.org/download.shtml
or here is a list
http://www.cpax.org.uk/prg/portable/...#FreeCompilers

is lcc better in some way?

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.

May 31 '07 #6
On 31 Mai, 11:36, Nikhil Bokare <nbok...@gmail.comwrote:
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.

--
Tor

May 31 '07 #7
Tor Rustad <to********@hotmail.comwrites:
On 31 Mai, 11:36, Nikhil Bokare <nbok...@gmail.comwrote:
>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.
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.
May 31 '07 #8
On 31 Mai, 15:28, Richard <rgr...@gmail.comwrote:
Tor Rustad <tor_rus...@hotmail.comwrites:
<snip>
A good C compiler is gcc, and if you start using lint too, you get
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.
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

--
Tor

May 31 '07 #9
On Thu, 31 May 2007 15:28:46 +0200, Richard <rg****@gmail.comwrote
in comp.lang.c:
Tor Rustad <to********@hotmail.comwrites:
On 31 Mai, 11:36, Nikhil Bokare <nbok...@gmail.comwrote:
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.

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
Jun 1 '07 #10
On Jun 1, 4:32 am, Jack Klein <jackkl...@spamcop.netwrote:
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.
--
JackKlein
Home:http://JK-Technology.Com
FAQs for
comp.lang.chttp://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

Jun 1 '07 #11
On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
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.
I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers

-Sharath

Jun 1 '07 #12
On Jun 1, 2:08 pm, Sharath <avshar...@gmail.comwrote:
On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
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.

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++.

Jun 1 '07 #13
Sharath wrote:
On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
>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.

I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers

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

Jun 1 '07 #14
"jacob navia" writes:
Sharath wrote:
>On May 31, 2:36 pm, Nikhil Bokare <nbok...@gmail.comwrote:
>>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.

I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers
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.
Jun 1 '07 #15
Fr************@googlemail.com wrote:
Jack Klein <jackkl...@spamcop.netwrote:
>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.
What happened to -Wall, not to mention some others.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com

Jun 1 '07 #16
On Jun 1, 5:43 pm, jacob navia <j...@jacob.remcomp.frwrote:
Sharath wrote:
I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers

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

Jun 1 '07 #17
Sharath <av*******@gmail.comwrites:
On Jun 1, 5:43 pm, jacob navia <j...@jacob.remcomp.frwrote:
>Sharath wrote:
I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers

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
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 ...
Jun 1 '07 #18
Fr************@googlemail.com wrote:
On Jun 1, 4:32 am, Jack Klein <jackkl...@spamcop.netwrote:
>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.
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/projec...lden_rules.txt

--
Tor <torust [at] online [dot] no>
Jun 1 '07 #19
On Jun 1, 7:46 pm, Sharath <avshar...@gmail.comwrote:
On Jun 1, 5:43 pm, jacob navia <j...@jacob.remcomp.frwrote:
Sharath wrote:
I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
>http://prokutfaq.byethost15.com/FreeCompilers
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
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.

Jun 3 '07 #20
Nikhil Bokare wrote, On 03/06/07 09:30:
On Jun 1, 7:46 pm, Sharath <avshar...@gmail.comwrote:
>On Jun 1, 5:43 pm, jacob navia <j...@jacob.remcomp.frwrote:
>>Sharath wrote:
I think Dev C++ IDE with Cygwin(gcc) compiler would fit your
requirement.
You can find link to this and other compilers at:
http://prokutfaq.byethost15.com/FreeCompilers
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

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
--
Flash Gordon
Jun 3 '07 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lovens weche | last post by:
Is there a good editor that can be used with a 32 bit compiler under the MS-Dos platform? I used to use the Watcom C++ 11 compiler but the editor that came with it (VI if I remeber) was not that...
72
by: E. Robert Tisdale | last post by:
What makes a good C/C++ programmer? Would you be surprised if I told you that it has almost nothing to do with your knowledge of C or C++? There isn't much difference in productivity, for...
39
by: Suresh | last post by:
Hi, I am new to C and curious to know some basic questions about C. Why C is good? In what way its better than any other languages? If it is no longer a choice of programming language...why...
3
by: happy | last post by:
I am searching over the net for a Good C compiler that has good editor .. Tc 2.01 has bad editor . please advice me with aweb site for downloading the godd Editor C compiler NOT C++. Thanks
9
by: myhotline | last post by:
Hi all, After googling i came across Pelles C, is it a good C compiler over Windows( I am using Windows Xp )...Though Pelles C website says its a C99-compliant compiler, even though i would like...
45
by: Brett | last post by:
If I do this without declaring a corresponding field, is it considered bad design? What are the advantages or disadvantages to either method? Notice there is not set. public string URL { get...
5
by: tthunder | last post by:
Hi @all, I am looking for a good (compiler-independent) way to generate meaningful error messages, if specific (unintended) templates are instantiated. e.g. ------------
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
23
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.