Inline assembly clobbered registers

Christian Hildner christian.hildner@hob.de
Thu Nov 6 14:58:00 GMT 2003


Falk Hueffner schrieb:

>Christian Hildner <christian.hildner@hob.de> writes:
>
>  
>
>>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.
>>    
>>
>
>Why can't you just make it an output variable?
>
I made it an input one instead. This is possible, but it would be nicer 
to allow an unspecified general register in the clobbered list.

Christian



More information about the Gcc-help mailing list