gmp3 with 4.08.x
Tue, 24 Apr 2001 14:04:30 +0100
> On Tue, Apr 24, 2001 at 12:32:56 +0100, Simon Marlow wrote:
> > > Is it possible to get a ghc-4.08.x working with libgmp3 (external
> > > would be nice)?
> > >=20
> > > How? =3D)
> > Not without making some changes to the 4.08.x RTS. I would=20
> stick with
> > GMP 2 if you can.
> % ldd /usr/lib/ghc-4.08.1/hsc
> --> libgmp.so.3 =3D> /usr/lib/libgmp.so.3 (0x4001b000) =20
> libm.so.6 =3D> /lib/libm.so.6 (0x4003d000)
> libc.so.6 =3D> /lib/libc.so.6 (0x4005f000)
> /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x40000000)
> worx. :) At least, it compiles. Is there any short program I can test
> whether the gmp stuff works correctly with? Is using `Integer' types
> (and computations on it) enough?
> BTW: I didn't change too much, AFAIR.
The native code generator will also need changing (it refers to some of
the internal GMP functions explicitly). I think probably the rest of
the compiler is OK.
To test it you need to use large integers, as Marcin pointed out.