[MPlayer-dev-eng] ppc runtime-cpu-detection fails with gcc 3.3

Rich Felker dalias at aerifal.cx
Sat Feb 25 23:48:37 CET 2006


On Sat, Feb 25, 2006 at 10:25:55PM +0100, Luca Barbato wrote:
> > Then there's the possibility of ditching the C language extensions and just
> > writing the altivec code with asm() like the MMX guys do...
> > 
> 
> No, please...

I for one consider this a much more graceful approach. ASM is a
standard language, albeit cpu-specific. Apple's and GCC's hacks and
extensions on top of the C language are proprietary, incompatible, and
lock users into GCC in the long term or else force other compilers
that might compete to duplicate the same disgusting hacks.

Also, with GCC's notoriously bad code generation, hand-coded asm loops
will probably be measurably faster too.

Rich




More information about the MPlayer-dev-eng mailing list