This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: inline assembly question (memory side-effects)
- From: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- To: gcc at gcc dot gnu dot org
- Cc: Till Straumann <strauman at slac dot stanford dot edu>
- Date: Mon, 12 May 2008 11:20:00 +0200 (CEST)
- Subject: Re: inline assembly question (memory side-effects)
> 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