Mail Archives: djgpp/2000/03/14/10:45:47
GAMMELJL AT slu DOT edu wrote:
[...]
> Specifically, in addition to the changes which I listed in previous
> communications, I had to change lines of assembly language like
> : "eax"
> occurring at the end of a section of assembly language and intended to
> inform the assembler that the register eax is used in that section of
> assembly language to
> pushl %%eax
> .
> .
> popl %%eax
This almost certainly is not the optimal way to solve that problem you
faced. I don't seem to have the full context on this thread, but it
sure seems like you fell into the 'fixed or forbidden register was
spilled' problem of old inline assembly sources presented to new gcc
versions, which has become a GCC FAQ. Pushing and popping is one
possible workaround, sure, but there are far better solutions, if you
want fast code. See the GCC homepage for more details, or, if you have
a copy of the gcc-2.95.2 source tree at hand, look into its FAQ file.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -