This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
List of possible clobber registers for x86
- From: Tamas Nagy <nagytam at web dot de>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 17 Jan 2003 13:27:22 +0100
- Subject: List of possible clobber registers for x86
- Organization: http://freemail.web.de/
Dear GCC-developers,
Thanks for this great product and your efforts.
When using inline assembly, I realized I do not know exactly what registers can be listed as clobbered registers in x86 platforms.
I have an inline assembly routines, which basicly modifies the following registers
"eax, ebx, ecx, edx, esi, edi" and the memory.
The code runs perfectly without optimization (-O0).
If I enable optimization (-O1..-O3), the code fails.. I assume this is due to the uncorrect list of clobbered registers.
I tried to pass all the mentioned, but only eax and ebx were accepted and the rest caused a compilation error: ~ "register not found in GENERAL_REGS" ...
So here is my real question, what is exactly this message and which registers should be listed as clobbers?
Many thanks,
Tamas
______________________________________________________________________________
Sie haben mehr zu sagen als in eine SMS passt? Mit WEB.DE FreeMail ist
das jetzt kein Problem mehr! http://freemail.web.de/features/?mc=021182