Click to See Complete Forum and Search --> : What's the fastest C compiler?


Ben Briggs
03-22-2001, 12:51 AM
I currently have GCC installed on my box, but since I'm getting into C, I started to wonder if there's another faster one.

So... is there?

Thanks,
Ben

Strike
03-22-2001, 11:49 AM
You mean fastest to compile or produces the fastest binaries? Either way, I'd bet it's still gcc anyway. I mean, Linus uses gcc to compile the kernel, so if it's good enough for him, it's probably good enough for whatever we can think of. :)

Super Bakemono
03-22-2001, 08:08 PM
what strike said :cool:

Gnu/Vince
03-23-2001, 02:12 PM
Also, the BSD's (OpenBSD, FreeBSD, NetBSD) use it. So it must be REALLY good, if they accept to use a GNU tool

sans-hubris
03-24-2001, 02:44 AM
Agreed. Dare I say it, but M$VC++ is prolly second, then Borland. Borland is no doubt worst and the pickiest. GCC has some of the most intuitive errors, making debugging very easy. OTOH, GCC and M$VC++ are both very lenient, and won't alway show you errors (unless you have -ansi -Wall on, I'm not sure how to set the same thing on M$VC++), and will often let you get away with stuff that go against the C/C++ standards, e.g.:

int foo;
cout << "enter amount: ";
cin >> foo;
int x[foo];

This shouldn't be allowed, but you won't see an error for it (i.e. it's not standard).

[ 24 March 2001: Message edited by: ndogg ]

[ 24 March 2001: Message edited by: ndogg ]

Ben Briggs
03-25-2001, 02:20 AM
Sorry about my delay in responding to your replies... I spent the last few days fighting with Debian to get my modem to work again, right now I'm in Slackware :).

To start off... thanks for all your replies. I guess I'll stick with gcc. I never had any complaints, I was just curious. I will definately follow ndogg's suggestion of using the '-ansi -Wall' tags when I compile C code.

Thanks again,
Ben

[ 25 March 2001: Message edited by: Ben Briggs ]

fod
03-25-2001, 07:21 PM
most games are compiled with M$VC++

Super Bakemono
03-26-2001, 12:22 AM
in windoze they are, but that's cause it's really the only choise in wind0ze