Death To __stginit_

Wolfgang Thaller wolfgang.thaller at gmx.net
Thu Apr 14 10:21:29 EDT 2005


> But we don't even want to require a C compiler for plain GHC; so what 
> if
> we are profiling... no stub c files...?

For profiling, my current patch leaves the stginit functions in place.
For non-profiling, the only thing we ever want to initialise are 
foreign exports, so we only need to add __attribute__((constructor)) 
functions to stub C files that we generate anyway in this case.

Cheers,

Wolfgang



More information about the Cvs-ghc mailing list