This is the mail archive of the gcc-help@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]

Re: Avoid certain registers in inline assembly


There is no general way to to avoid a register.  However, on PPC, you
can use the constraint "b" rather than "r" to indicate that you want a
general register other than r0.

Thank you Ian and Andrew! That looks like the perfect solution - I will try it now!


Cheers
Andy



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