Re: A89: TIGCCLIB 2.0 released!
[Prev][Next][Index][Thread]
Re: A89: TIGCCLIB 2.0 released!
Scott Noveck wrote:
[snip]
> And now, a question or two for the master: Is there any way I can use1
> constants/defines from the C code in inline ASM? Since the ASM code is in a
> string, it's not going to be modified by the compiler in any way, so
> anything in there will be interpreted literally, correct? Also, I see you
> don't use volatile anywhere - when exactly will the compiler attempt to
> optimize the ASM code itself (and possibly screw it up)?
[snip]
Yes you can use constants/defines in inline asm. Read the gcc manual for
the info: http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC96
--
Scott "Wrath" Dial
wrath@calc.org
ICQ#3608935
Member of TCPA - tcpa.calc.org
_____________________________________________
NetZero - Defenders of the Free World
Click here for FREE Internet Access and Email
http://www.netzero.net/download/index.html
References: