[MPlayer-dev-eng] [PATCH] Disable additional optimization if compiler doesn't support __attribute__((used))
Loren Merritt
lorenm at u.washington.edu
Mon Jun 11 07:24:36 CEST 2007
On Sun, 10 Jun 2007, Trent Piepho wrote:
>> I wouldn't call it a hack. It is the only way to access static/global
>> variables if you're writing pure asm files, and it doesn't get any less
>> valid just because gcc inline asm provides another way.
>
> If you want to access a C global from an asm file, shouldn't the global not
> be static?
I meant, the only way to access static or global variables in an asm file
is to write the variable name in the asm. Yes, only a global variable
would need to be mangled then, since a static variable would be declared
in the asm file with whatever name you want.
--Loren Merritt
More information about the MPlayer-dev-eng
mailing list