Re: gcc 2.95 vs 3.21 performance

b_adlakha
2003-02-07T10:22:14Z

Neil Booth writes:

> b_adlakha@softhome.net wrote:-
>
>> Maybe thats why its a 0.9* version, and the auther has stated on his site
>> that not all C98 features are implimented...but then even GCC doesn't
>> impliment them...
>
> No, I said C89. He's got a *long* way to go for that. Forget C99.
>
> However, he does claim C89 compliance, which is quite disingenuous.
>
>> I checked tcc out, and its damn fast, much much much much faster than gcc.
>> gcc is bloated and its slow even on my pentium 4 machine, let alone my 1.2
>> celeron. It takes 20 minutes to compile a new kernel on that, now if you're
>> gonna test kernels/patches, you can wait 20 minutes for every compile!
>
> I agree. I'm trying to fix it.
>
> GCC is larger for a reason: it does things properly. It's easy to be
> fast if you're willing to be wrong, and not emit warnings or errors, and
> not implement half the standard. And not optimize.
>
>> Even icc is much better than gcc, but its very perticular about code (and
>> its not gcc compatible as the intel site says)
>> And its non-free also...
>
> Only better in terms of compile speed.

Cool (you're trying to fix it), maybe you can modify tcc so it is optimized
for compiling linux (optimized for compiling speed and runtime speed for
linux). I think it'll be easier and quicker to just make it compile linux
properly first, then do the testing/fixing for other things, as they are so
many compilers for other things anyway...And maybe it can be called "Linux C
Compiler"? lol.