Mail Archives: djgpp/2001/10/04/08:19:06
Benjamin Kalytta <bkausbk AT web DOT de> wrote:
> how can I use mmx in gcc ?
GCC itself doesn't offer you any access to MMX at all. The original
MMX is pretty useless for compiled code, anyway, due to the way it
interferes with usage of floating point numbers. That may be
different for its later versions 3DNow! and SSE 1/2, to some extent.
But the further you go in this development, the more you limit the
range of platforms your code will work on.
That leaves inline assembly on appropriately typed data as the only
way.
You may easily end up in a code-forking nightmare if you're not very
careful. And the fact that MMX and friends are rather hard to code
efficiently for truly doesn't help with that, either.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -