RE : RE : problem of non-pic code due to asm code.
PICCA Frédéric-Emmanuel
frederic-emmanuel.picca@synchrotron-soleil.fr
Fri Aug 21 22:43:00 GMT 2009
> 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
More information about the Gcc-help
mailing list