[vlc-devel] [RFC] Plugins CPU requirements

Måns Rullgård mans at mansr.com
Sat Jan 9 17:33:42 CET 2010

"Rémi Denis-Courmont" <remi at remlab.net> writes:

> Le samedi 9 janvier 2010 18:14:10 Laurent Aimar, vous avez écrit :
>> Hi,
>> On Sat, Jan 09, 2010, Rémi Denis-Courmont wrote:
>> > I can think of 6 different (classes of) solutions:
>> >
>> > 6) Never use the offending compiler flags at all. I guess this works with
>> > GCC on 386. I am quite sure this would not work for ARM. I suspect this
>> > does not work for PowerPC either. This might not work with other
>> > compilers (or versions).
>>  Do you mean flags like -msseX ?
> Yes. Basically -mmmx, -msse, -msse2, -maltivec, -mfpu=neon.
>>  If so, it is not possible for file using
>> intrinsics (they can be used only when -msseX are defined.)
> Ok. Funny that it only affects intrinsics on x86, but both intrinsics and 
> inline assembly on ARM.

The gnu assembler for x86 is broken in that it allows any instruction
regardless of -march setting.  The ARM assembler does proper checks,
and aborts with an error if an unsupported instruction is encountered.

Måns Rullgård
mans at mansr.com

More information about the vlc-devel mailing list