473,721 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Good shareware compiler for C?

H.
I am a student taking a machine structures class in a university, which
includes learning C. I am looking for a good freeware or shareware
compiler which can be used in a "C only" mode. C++ isn't allowed in
assignments, and I would like the compiler to check for C syntax
instead of C++ syntax. Besides that, ease of use for a beginner and
basic debugging capabilities are important.

Suggestions are welcome.

Jan 18 '07
87 3790
Chris Saunders wrote:
>
Sorry, but I insist on "top posting". I personally find it
annoying to have to scroll through a post to read the responce
when I have been following the conversation. I have read and
disagree the site in the URL yo7u posted. Fortunatly for you,
I will not be sending messages frequently to this group but
thought I could be helpful to the person I was responding to.
And when you do you won't be noticed. PLONK

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Jan 21 '07 #41
On 18 Jan 2007 10:18:49 -0800, H. <hb****@gmail.c omwrote:
I am a student taking a machine structures class in a university, which
includes learning C. I am looking for a good freeware or shareware
compiler which can be used in a "C only" mode.
This is the 21st century -- you are more likely to find good Free Software
than shareware or "freeware" these days. GCC and its derivates come to
mind:

http://en.wikipedia.org/wiki/GNU_Compiler_Collection
C++ isn't allowed in
assignments, and I would like the compiler to check for C syntax
instead of C++ syntax.
You need to look into which flags you pass to the compiler -- not only to
make sure you're not using C++, but also to enforce modern type checking,
warnings for stupid beginner's mistakes, to disable compiler-specific
extensions to the language, and to choose the C89 or C99 standard. For gcc,
a good starting point is

gcc -W -Wall -pedantic -std=c89
or
gcc -W -Wall -pedantic -std=c99

This applies to gcc and many or most other compilers.

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyn dns.org R'lyeh wgah'nagl fhtagn!
Jan 21 '07 #42
Jorgen Grahn <gr********@sni pabacken.dyndns .orgwrites:
[...]
You need to look into which flags you pass to the compiler -- not only to
make sure you're not using C++, but also to enforce modern type checking,
warnings for stupid beginner's mistakes, to disable compiler-specific
extensions to the language, and to choose the C89 or C99 standard. For gcc,
a good starting point is

gcc -W -Wall -pedantic -std=c89
or
gcc -W -Wall -pedantic -std=c99
The latter doesn't entirely conform to the C99 standard;
it might or might not be close enough for your purposes.
See <http://gcc.gnu.org/c99status.html> .

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 21 '07 #43
In article <8e************ *************@M OUNTAINCABLE.NE T>,
Chris Saunders <ev**@mountainc able.netwrote:
>Sorry, but I insist on "top posting". I personally find it annoying to have
to scroll through a post to read the responce when I have been following the
conversation .
And most of the people reading here find it annoying to see an entire,
untrimmed, quoted post at the end of your post as the only context for
your comments.

If you really want to annoy us, none of us can stop you, but you can
expect a lot of us to ignore you.
dave

--
Dave Vandervies dj******@csclub .uwaterloo.ca
Top-posting =no context =no help.
Top-posting repeatedly =idiot =plonk =no help.
--Chris Dollin in comp.lang.c
Jan 21 '07 #44
In article <ep**********@r umours.uwaterlo o.ca>,
Dave Vandervies <dj******@caffe ine.csclub.uwat erloo.cawrote:
>In article <8e************ *************@M OUNTAINCABLE.NE T>,
Chris Saunders <ev**@mountainc able.netwrote:
>>Sorry, but I insist on "top posting". I personally find it annoying to have
to scroll through a post to read the responce when I have been following the
conversatio n.

And most of the people reading here find it annoying to see an entire,
untrimmed, quoted post at the end of your post as the only context for
your comments.

If you really want to annoy us, none of us can stop you, but you can
expect a lot of us to ignore you.
And you'll be the better for it. Think of it as self-killfiling.

Jan 21 '07 #45
Jacob,
I just noticed your post. I have been using your compiler for
about a year. Excellent job. I have recommended it to many friends.
Thanks.

Andrew

jacob navia wrote:
H. a écrit :
I am a student taking a machine structures class in a university, which
includes learning C. I am looking for a good freeware or shareware
compiler which can be used in a "C only" mode. C++ isn't allowed in
assignments, and I would like the compiler to check for C syntax
instead of C++ syntax. Besides that, ease of use for a beginner and
basic debugging capabilities are important.

Suggestions are welcome.

If you use windows you can use my compiler system lcc-win32

http://www.cs.virginia.edu/~lcc-win32

o All windows APIs are supported
o 128 bit integers, 352 bits floating points
o bignums

o IDE + project management and makefile generation
o debugger (windowed)
o ressource editor (graphical dialog box designer)

o profiler
o grep/diff/search/ and many other goodies

http://www.cs.virginia.edu/~lcc-win32
Jan 22 '07 #46
H. wrote:
I am a student taking a machine structures class in a university, which
includes learning C. I am looking for a good freeware or shareware
compiler which can be used in a "C only" mode. C++ isn't allowed in
assignments, and I would like the compiler to check for C syntax
instead of C++ syntax. Besides that, ease of use for a beginner and
basic debugging capabilities are important.

Suggestions are welcome.
Hi:

You can try AMPC (Axiomatic Multi-Platform C) compiler which supports
ANSI C (1989). It generates Java Bytecode which makes the executables
platform-independent. Check it out here: http://www.axiomsol.com

Have fun.

Napi

Jan 22 '07 #47
napi wrote, On 22/01/07 04:12:
H. wrote:
>I am a student taking a machine structures class in a university, which
includes learning C. I am looking for a good freeware or shareware
compiler which can be used in a "C only" mode. C++ isn't allowed in
assignments, and I would like the compiler to check for C syntax
instead of C++ syntax. Besides that, ease of use for a beginner and
basic debugging capabilities are important.

Suggestions are welcome.

Hi:

You can try AMPC (Axiomatic Multi-Platform C) compiler which supports
ANSI C (1989).
No it does not. According to your web site "AMPC covers a very large
subset of ANSI C (1989)." A large subset is *not* the language defined
by the standard, the language defined by the language is *all* of the
language defined by the standard. So if the OP finds that for his course
he is required to use feature X defined by the standard that you do not
currently support do you guarantee to add it to your compiler fast
enough not to cause him problems?
It generates Java Bytecode which makes the executables
platform-independent. Check it out here: http://www.axiomsol.com
It is an interesting project, but I would not recommend it for people on
a course unless the course specifies it since you never know when you
might hit things it does not implement. At least with other compilers
you know that it is only bugs in the C89 implementation rather than
having not fully implemented C.
--
Flash Gordon
Jan 22 '07 #48
"Chris Saunders" <ev**@mountainc able.netwrote:
Sorry, but I insist on "top posting".
*Plonk*

Richard
Jan 22 '07 #49
"napi" <na**@axiomsol. comwrote:
You can try AMPC
It generates Java Bytecode which makes the executables platform-independent.
*Snigger*

Richard
Jan 22 '07 #50

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

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.