"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