Re: Avoid certain registers in inline assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Andy Gibbs" <andyg1001@xxxxxxxxxxxxx> writes:

> All well and good in this example, but there are other places where
> such a simple instruction alteration is not the answer.  What I was
> wondering is, is there a way to tell GCC to avoid certain registers,
> in particular to avoid register r0, when assigning registers for
> 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.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux