On Mon, 4 Oct 1999, Steffen Seeger wrote:
> AFAIK GNU C does that if it becomes faster. So, it depends on the compiler
> you use :-)
Hmm, I'll take a look at the GCC output tonight, but I don't think GCC
makes a neat table out of the 32 bit values that the KGI commands
actually are at the moment. I don't like GCC that much anymore since the
following:
I have to initiate the Z-buffer with 0x7fffffff values. in assembly
(intel) it is
rep movsd
in GCC it took me hours to get GCC producing:
sub dx,4
mov 0x7fffffff,(dx)
dec eax
jnz loop
The original loop GCC creates was about 9 instructions long, increasing
addresses made a mess of the code, so I had to decrease them. The only way
that produced neat code was treating the Z-buffer like an array of kgiu32
values.
What my compiler options are ?
gcc -O7 -march=pentiumpro -mpentiumpro
gcc = egcs delivered with Redhat 6.0
Jos