Mail Archives: djgpp/1997/12/04/21:06:27
> I'm not totally agree with that!
> You don't know, if you use gcc -O option how the registers would be
> assigned and used!
The premise I was following that the only code in the routine was ASM,
meaning gcc wouldn't play with any of the registers (if I declare the asm
volatile, which I didn't do in the original post).
> Q: i usually writes long piece of assembly. So why is there such a
> limitation to the "%x" variables? "x" only goes from 0 to 9. So i have
> to cut my code into smaller peaces to be able to use more then 10
> variables. In this case too, you must explicitly indicate the registers
> to push at the beginning of the first asm() and the pop at the end of
> the last one.
I have no idea but gave up on the 10 limit and just declared everything
global. Faster, easier and no limitation on the variable passing....
Leathal.
- Raw text -