[MPlayer-dev-eng] symbol mangling prob on win32

Felix Buenemann atmosfear at users.sourceforge.net
Fri Jan 18 00:41:54 CET 2002


On Thursday, 17. January 2002 01:39, you wrote:
> > What do you think, is the best way to handle the problem (var in inline
> > asm
>
> best way? ... destroy M$ & win32 :))))
> alternative way:
> #ifndef __CYGWIN__
> #define MANGLE(a) #a
> #else
> #define MANGLE(a) "_" #a
> #endif
> asm volatile("movq "MANGLE(bFF)", %%mm0;":::"memory");
>
> its still ugly but less so imho
IMHO it must be:
> #ifndef __CYGWIN__
> #define MANGLE(a) "#a"
> #else
> #define MANGLE(a) "_#a"
> #endif
> asm volatile("movq "MANGLE(bFF)", %%mm0;":::"memory");
I mean that inserted var name must be quoted or gcc will spit a syntax error.
"movq ""bFF""..." is ok but "movq "bFF"..." is not.
-- 
Best Regards,
	Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________




More information about the MPlayer-dev-eng mailing list