Re: gcc 2.95 vs 3.21 performance

Linus Torvalds (torvalds@transmeta.com)
Tue, 4 Feb 2003 21:38:48 +0000 (UTC)


In article <200302041935.h14JZ69G002675@darkstar.example.net>,
John Bradford <john@grabjohn.com> wrote:
>> I'm hesitant to enter into this. But from my own experience
>> the issue with big companies supporting these sort of changes
>> in gcc have more to do with the acceptance process of changes
>> into gcc than a lack of desire on the large companies part.
>
>Maybe we should create a KGCC fork, optimise it for kernel
>complilations, then try to get our changes merged back in to GCC
>mainline at a later date.

That's not really the problem.

I think the problem with gcc is that many of the developers are actually
much more interested in Ada or C++ (or even Fortran!), than in plain
old-fashioned C. So it's not a kernel issue per se, gcc is slow to
compile _any_ C project.

And a lot of the optimizations gcc does aren't even interesting to most
C projects. Most "old-fashioned" C projects tend to be written in ways
that mean that the most important optimizations are the truly trivial
ones, and then doing good register allocation.

I'd love to see a small - and fast - C compiler, and I'd be willing to
make kernel changes to make it work with it.

Let's see. There's been some noises on the gcc lists about splitting up
the languages for easier maintenance, we'll see what happens.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/