Inline assembly clobbered registers

Christian Hildner christian.hildner@hob.de
Thu Nov 6 13:23:00 GMT 2003


Hi there,

I need a temporary general register inside the inline assembly code. The 
definition for a particular register is possible by for example "eax". 
But how to define a general register that the compiler is allowed to 
choose as it is possible with input/output registers who are referenced 
by %0, %1, ... ? So simply to allow "r" in the clobbered list and 
reference it by %x in the assembly code. That would be great for the 
optimizer because defining a specific register as clobbered is always 
the second best solution.

Might this be an idea for the next gcc release?

Comments?

Christian



More information about the Gcc-help mailing list