I've ported GMP to Mac Pro. GMPbench > 7700

Niels Möller nisse at lysator.liu.se
Fri Oct 13 08:57:32 CEST 2006


"Jason Worth Martin" <martinjw at jmu.edu> writes:

> I believe that this code could be ported to Core 2 Linux machines, but
> the GNU assembler doesn't want to let me use the "sahf" and "lahf"
> instructions to save the flags between loop iterations.

If you need an instruction that the assembler doesn't know about, you
can always work around it by handassembling the instruction and
writing it as .byte sequences. Preferably as an m4 macro.

There may be some better way to do it, but I'm not really familiar
with this level of x86 programming.

Regards,
/Niels


More information about the gmp-devel mailing list