> Ah, I see. You need to rewrite references to global variables to go > through a register. > movl _128mm@GOTPCREL(%rip),%rax > psubw mm2,(%rax) > The easiest way to see the right code to generate is to write C code > which accesses a global variable in the same way, compile it with the -S > option, and look at the resulting assembly code. Ok I will try this and see what append. Is there a better way with gcc to produce mmx code than writting directly asm code ? thanks Frederic