[MLton-devel] RE: calling SML from C in MLton

Mike Thomas miketh@brisbane.paradigmgeo.com
Thu, 1 May 2003 15:54:27 +1000


| I forgot that you also need "-keep g", which saves the generated C
| files (mllex.*.c).  It's probably best just to run and find the line
| where the error occurs.

On second thought, of course, letting it run won't work as the debugger is
masking the problem.

|
| If you want to find the program start point, you need to look at the
| last line in mllex.0.c.  Mine looks like
|
| 	Main(8, 0x164778DF, 192, TRUE, TRUE, FALSE, 0, 987)
|
| Then find the "case 987" (your number may be different) in one of the
| mllex.*.c files.  Mine's on line 420 of mllex.4.c.  The next line is
| where the SML code starts running.

Found the start point OK however.





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel