inline assembly question (memory side-effects)
Etienne Lorrain
etienne_lorrain@yahoo.fr
Mon May 12 09:20:00 GMT 2008
> What is the proper way to tell gcc that a inline assembly statement either modifies
> a particular area of memory or needs it to be updated/in-sync because the assembly
> reads from it.
Maybe also related to:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32642
i.e. "=m" works for variables/structures in memory (i.e. declared global) but not for
variables/structures in the stack.
The only way around I found it is using the "=X" modifier, but that has not been
seen as a good solution - still works for my sourceforge project.
Etienne.
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
More information about the Gcc
mailing list