This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

List of possible clobber registers for x86


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]