Re: [PATCH] new makefile for fbcon

Ralf Baechle (ralf@uni-koblenz.de)
Sat, 13 Nov 1999 13:49:26 +0100


On Sat, Nov 13, 1999 at 01:12:07AM +0100, Dominik Kubla wrote:

> a) Can not use better-optimizing compilers from hardware vendors (like Compaq
> on Alpha systems or possibly SUN on SPARC)

Some SGI guys tried to base their own Origin 200 port on their own
toolchain. The result was ... less than great ...

Most of us know pretty well how to write C to achieve a certain output.
Look at loops like:

a = addr & ~(dc_lsize - 1);
end = (addr + size) & ~(dc_lsize - 1);
while (1) {
...
if (a == end) break;
a += dc_lsize;
}

Looks weird? Maybe, but generates best possible assembler code. So while
we write C we often tend to think in assembler.

> b) Can not verify that a certain behaviour is compiler-related without
> analyzing the generated assembler code (a tedious task at best!)

Often trying a different gcc version serves the same purpose.

Ralf

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