Re: FastMM.. any work in progress?



Hi Sanyin,

Can you explain this behaviour?It is not safe to use MMX?

It is safe to use MMX, just not in the memory manager. :-) Some of the "compiler magic" functions pass a floating point parameter on the FPU stack. If such a routine calls the memory manager and the memory manager uses MMX then that FPU parameter will be destroyed, since you cannot use the FPU and MMX at the same time.

So far I have only seen this happen in custom variant code, so admittedly it is rare for this to happen. However, the gain from using MMX is very small (less than 2%), so I decided to play it safe and switch it off by default.

Regards,
Pierre
.



Relevant Pages

  • Re: Pentium 4 - Register TRANSLATED
    ... > Hab im Netz vor geraumer Zeit ne Seite gefunden, ... > zusammen ein Bild). ... It was quite obviuos from it that, for example, MMX and FPU ...
    (comp.lang.asm.x86)
  • Re: the performance of x86 processor and DSP
    ... between FPU and MMX modes? ... the code to save MMX registers at task switch. ... It really looks like Intel cooked up their instruction set additions by ...
    (comp.dsp)
  • Re: Limited Multi-Precision
    ... > Does anyone know of some QUAD precision integer ... On the original pentium (or MMX) you want to use the FPU for this. ...
    (sci.crypt)
  • Re: the performance of x86 processor and DSP
    ... I've seen somewhere that Intel made blunder with the MMX, ... between FPU and MMX modes? ... as separate registers, they are aliased to the registers in the FPU data ... FPU Architecture"." ...
    (comp.dsp)