GMP
Marcin 'Qrczak' Kowalczyk
qrczak@knm.org.pl
Tue, 20 Nov 2001 23:52:14 +0000 (UTC)
I think there exists a problem. I haven't encountered it because I
haven't tried to provoke it, but if I'm not mistaken it can cause
big trouble.
Programs compiled by ghc set gmp's allocation functions to ones
which allocate byte arrays on the Haskell heap, instead of the
default malloc/free.
Now imagine a program or library which uses gmp for its own purposes
and is linked with a program or library compiled with ghc. GMP's hooks
are global, gmp is shared. Neither of allocation methods is suitable
for the other side. So it won't work.
Is there a solution?
--
__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
\__/
^^
QRCZAK