> | A more general question - are there plans to use .DLL files with GHC?
> | That is:
> | 1. Let's put the 620K run time into a DLL!
> | 2. Until a Haskell program can call a DLL it can't be a true Windows
> | citizen.
>
> It would certainly be a Good Thing. Any volunteers?
I'm not sure about Windows DLLs, but shared libraries under Unix
require compiling the code position-independant, which involves
allocating a register to point to the look-up tables. GHC makes
pretty heavy use of registers, and the x86 is already short. The
chances are that doing this right now would impose a significant
performance hit.
The solution is to redesign GHC so that it uses less registers
(eg. having one stack instead of two), thus freeing up a register for
PIC code. So, we just need someone with the time and inclination to
implement it...
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key