precompiled GMP

Kevin Ryde
Fri, 16 May 2003 08:02:03 +1000

Andreas Fabri <> writes:
> The "Notes for Particular Systems" do not explain how to obtain a
> static gmp.lib

They do, look under "Microsoft C".

> But, do I have to use the generic implementations of arithmetic
> operations, because if I precompile with the assembler routines in
> mpn/x86/P6 it will not run on a k7 hardware and the other way round.
> How much slower is the generic implementation?

The generic x86 asm code is designed to be reasonable on all x86
chips, though for unfriendly chips like p4 it's probably as much as 3x
slower, in the innermost loops.