This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]