cvs commit: hugs98/src ffi.c static.c connect.h

Ross Paterson ross@soi.city.ac.uk
Fri, 3 Jan 2003 22:16:10 +0000


On Fri, Jan 03, 2003 at 07:25:51PM +0000, Alastair Reid wrote:
> IIRC, when I wrote the static linkage code, using this required you to
> either modify plugins.c or compile plugins.c with 
> 
>    -DPLUGINS='{"Foreign.Marshal.Alloc", initFMAlloc}'

Yes, you left a comment to this effect.

> These work but could obviously get a bit tedious/ hard to maintain.
> 
> If you haven't already done so, it would be very, very cool to make
> use of the ELF / DLL initializer feature.  

I was doing the tedious thing, and thinking maybe it could be done in
the Makefile some day.  But isn't the principal advantage of plugins
that they let you use FFI-using library modules even on systems without
dynamic loading?  What would this buy you over the current setup?