w r | 29 May 00:43
Picon
Favicon

dotnet module initialization

I've built a dotnet dll using bigloo3.0c and cscc, and
the results look good.  However, when I run a test
program which links against the dll, it appears that
the module initialization must be run first.  Is there
something similar to -jvm-cinit-module, or a function
which can be called at runtime to initialize the
bigloo modules under dotnet?

Wayne

w r | 30 May 16:34
Picon
Favicon

Re: dotnet module initialization

I got this by running ildasm on a bigloo-generated
Main function ("component" is an object in the
bigloo/cscc-generated dll):

void static public Main(String[] args){
    	realcallback.init();
	Object oArgs = foreign.listargv(args);
	component.bigloo_main(oArgs);
	:
	:
}

This code compiles, but generates the following
exception:

>ilrun -Lscheme -L../scheme -L/usr/lib/bigloo/3.0c
-L/usr/lib/cscc/lib test/test.exe
evprimop::.cctor - method is too big to be converted
(24269 bytes)
Uncaught exception:
System.Security.VerificationException: Could not
verify the code
	at
bigloo.runtime.Eval.eval.BgL_importedzd2moduleszd2initz00()
	at
bigloo.runtime.Eval.eval.BgL_modulezd2initializa7ationz75(Int32,
Byte[])
	at scheme.component.BgL_libraryzd2moduleszd2initz00()
	at
scheme.component.BgL_modulezd2initializa7ationz75(Int32,
(Continue reading)


Gmane