473,698 Members | 2,134 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 3775
On Thu, 18 Jan 2007 12:41:16 -0600, David T. Ashley wrote
(in article <7Y************ *************** ***@giganews.co m>):
"H." <hb****@gmail.c omwrote in message
news:11******** *************@5 1g2000cwl.googl egroups.com...
>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.

Suggestions:

a)There are a number of ports of gcc that will work. Other posters will
suggest them, I'm sure.
Indeed. For a free compiler, you can't beat it, and there are
certainly some out there that are far worse, some mentioned in this
thread.
b)Microsoft's Visual C++ has come way down in price (about $120 now, I
think). This might be an option. It will operate in "C only" mode.
For very narrowly defined definitions of "C".
c)If you have a spare PC, you can just download Fedora and set up a Linux
box. gcc is automatically part of that.
"Basic debugging capabilities" /probably/ means an IDE with integrated
debugger in 2007, although plenty of us old-timers prefer other
methods.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Jan 19 '07 #21
On Thu, 18 Jan 2007 23:05:58 -0600, CBFalconer wrote
(in article <45************ ***@yahoo.com>) :
"David T. Ashley" wrote:
>"user923005 " <dc*****@connx. comwrote in message
... snip ...
>>>
For Windows:
http://msdn.microsoft.com/vstudio/ex...c/default.aspx

It seems from the Microsoft website that this is a free download
(I'm shocked). Did I get that right?

Also, I'm going to guess that gcc has forced Microsoft to do this.
With gcc available for Windows, it is more than adequate for the
instructiona l needs of universities, people trying to learn C on
their own, and so on. I think Microsoft has been forced to do
this. Am I guessing right?

As far as I am concerned it is useless. Claims to require W2000
up, and I won't let those on my hardware, due to the EULA. Stick
with some version of GCC.
Better yet, buy a Mac mini for cheap, and run the free (and built into
the install DVD) Xcode front-end to gcc, which is very nice, has all
the standard GUI features you might expect, and runs on a stable OS.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Jan 19 '07 #22
I don't know if it works on other platforms other than Windows but Pelles C
is excellent and free.
If I recall correctly it has some support for C99.

Regards
Chris Saunders

"Randy Howard" <ra*********@FO OverizonBAR.net wrote in message
news:00******** *************** ******@news.ver izon.net...
On Thu, 18 Jan 2007 12:41:16 -0600, David T. Ashley wrote
(in article <7Y************ *************** ***@giganews.co m>):
>"H." <hb****@gmail.c omwrote in message
news:11******* **************@ 51g2000cwl.goog legroups.com...
>>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.

Suggestions:

a)There are a number of ports of gcc that will work. Other posters will
suggest them, I'm sure.

Indeed. For a free compiler, you can't beat it, and there are
certainly some out there that are far worse, some mentioned in this
thread.
>b)Microsoft' s Visual C++ has come way down in price (about $120 now, I
think). This might be an option. It will operate in "C only" mode.

For very narrowly defined definitions of "C".
>c)If you have a spare PC, you can just download Fedora and set up a Linux
box. gcc is automatically part of that.

"Basic debugging capabilities" /probably/ means an IDE with integrated
debugger in 2007, although plenty of us old-timers prefer other
methods.
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw



Jan 19 '07 #23
Chris Saunders wrote:
I don't know if it works on other platforms other than Windows but
Pelles C is excellent and free. If I recall correctly it has some
support for C99.
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html >
Jan 19 '07 #24
On Fri, 19 Jan 2007 20:13:38 +0100, in comp.lang.c , "Serve
Laurijssen" <se*@n.tkwrot e:
><rb********@ma ilinator.comwro te in message
news:11******* *************** @s34g2000cwa.go oglegroups.com. ..
>>
While being an arrogant prat
doesn't necessarily indicate that someone will be a bad
compiler-writer, the cavalier attitude to international standards
displayed day in, day out on this group should give pause for thought.

Advising somebody not to use his compiler because you dont agree with the
compiler writer's way of posting in a freaking newsgroup is really sad.
I think the point was more that jn hasn't displayed much interest in
or understanding of the difference between standards compliance, and
platform-specific extensions. My own experience is that drivers who
think red lights and indicating are optional tend to make bad drivers.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jan 19 '07 #25

"Mark McIntyre" <ma**********@s pamcop.netwrote in message
news:do******** *************** *********@4ax.c om...
>>Advising somebody not to use his compiler because you dont agree with the
compiler writer's way of posting in a freaking newsgroup is really sad.

I think the point was more that jn hasn't displayed much interest in
or understanding of the difference between standards compliance, and
platform-specific extensions. My own experience is that drivers who
think red lights and indicating are optional tend to make bad drivers.
that is only true if platform specific extensions could be compared to
driving through red light. platform specific extensions *are* allowed so it
doesnt make anybody a bad programmer when they use them.

I know a good programmer who uses gcc's extensions a lot. Is gcc bad for
introducing the features or the programmer or nobody?
Jan 20 '07 #26
"Serve Laurijssen" <se*@n.tkwrites :
"Mark McIntyre" <ma**********@s pamcop.netwrote in message
news:do******** *************** *********@4ax.c om...
>Advising somebody not to use his compiler because you dont agree with the
compiler writer's way of posting in a freaking newsgroup is really sad.
I think the point was more that jn hasn't displayed much interest in
or understanding of the difference between standards compliance, and
platform-specific extensions. My own experience is that drivers who
think red lights and indicating are optional tend to make bad drivers.

that is only true if platform specific extensions could be compared to
driving through red light. platform specific extensions *are* allowed so it
doesnt make anybody a bad programmer when they use them.

I know a good programmer who uses gcc's extensions a lot. Is gcc bad for
introducing the features or the programmer or nobody?
Nobody, as long as the programmer is aware that the extensions are
non-standard.

--
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 20 '07 #27
Serve Laurijssen a écrit :
"Mark McIntyre" <ma**********@s pamcop.netwrote in message
news:do******** *************** *********@4ax.c om...
>>>Advising somebody not to use his compiler because you dont agree with the
compiler writer's way of posting in a freaking newsgroup is really sad.

I think the point was more that jn hasn't displayed much interest in
or understanding of the difference between standards compliance, and
platform-specific extensions. My own experience is that drivers who
think red lights and indicating are optional tend to make bad drivers.


that is only true if platform specific extensions could be compared to
driving through red light. platform specific extensions *are* allowed so it
doesnt make anybody a bad programmer when they use them.

I know a good programmer who uses gcc's extensions a lot. Is gcc bad for
introducing the features or the programmer or nobody?

Let's not polemic because of a stupid comment from an anonymous coward.
(unless he really is called "rbhlgjwbvi " of course :-)

Anyway Mr Mcintyre only knows about polemic. No substantive arguments
anywhere.

Personally I try to avoid this discussions because they lead to nothing
productive.

Thanks for your comments.

jacob
Jan 20 '07 #28
On Sat, 20 Jan 2007 11:04:10 +0100, in comp.lang.c , jacob navia
<ja***@jacob.re mcomp.frwrote:
>Personally I try to avoid this discussions because they lead to nothing
productive.
Hilarious.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jan 20 '07 #29
Since you are on Windows, I would recommend Pelles C. It runs using
the LCC compiler, and in my opinion, is quite a bit better than
lcc-win32.

Pelles C - http://www.smorgasbordet.com/pellesc/

Also, if you are just looking for a compiler, I heartily recommend
OpenWatcom. It is fantastic for both C++ and C. It gets rid of alot of
overhead for the STL(C++), and it has many optimization options. It is
just as good, if not better than gcc/g++ on Windows, and it is
ofcourse, open source. Plus it runs as a replacement for Microsoft's
C++ compiler(it has the same cmd name), just incase you need that too.

OpenWatcom - http://www.openwatcom.org/index.php/Download

Good luck anyways.

Jan 20 '07 #30

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.