gmp3 with 4.08.x
Tue, 24 Apr 2001 15:46:36 +0100
> On Tue, Apr 24, 2001 at 14:04:30 +0100, Simon Marlow wrote:
> > > BTW: I didn't change too much, AFAIR.
> > The native code generator will also need changing (it=20
> refers to some of
> > the internal GMP functions explicitly). I think probably=20
> the rest of
> > the compiler is OK.
> Hmmm, i didn't change anything in this respect (why should I? I
> thought gmp3 and gmp2 are binary incompatible /ONLY/), but tested the
> NCG. =20
If you're only using the C API provided by gmp.h, then gmp3 and gmp2 are
compatible. However, gmp 3 uses some #defines to rename some internal
functions, so unless you're compiling via C the names won't match.
For the NCG to go wrong, you'd have to compile some code that used one
of the integer PrimOps (say, comparison), but you'll need to turn
optimisation on for the primop to appear in the code being compiled.