From: leathm AT solwarra DOT gbrmpa DOT gov DOT au (Leath Muller) Message-Id: <199712050201.MAA06275@solwarra.gbrmpa.gov.au> Subject: Re: Inline asm To: fabrice AT trash DOT lip6 DOT fr (Fabrice ILPONSE) Date: Fri, 5 Dec 1997 12:01:51 +1000 (EST) Cc: djgpp AT delorie DOT com In-Reply-To: <34852EF2.D4F@trash.lip6.fr> from "Fabrice ILPONSE" at Dec 3, 97 11:05:38 am Content-Type: text Precedence: bulk > 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.