
6 Dec
2004
6 Dec
'04
9:39 a.m.
On 2004-12-06, Keith Wansbrough
The static vs dynamic linking question has been discussed many times. The summary is: GHC is a highly-optimising compiler, and the binary interface _necessarily_ changes with every minor revision (even patchlevel revision) of the compiler and each library. So you can't
We already have a way to deal with that using sonames. It's not that hard, and is routinely used. BTW, is this a problem even if no -O options are given when building a library?
sensibly share libraries between apps. Anyway, disc is cheap.
Memory not so much, though. One advantage of having something in .so form is that every instance of every application that uses it shares the same in-memory image of the code. -- John