[MLton-devel] minor nits with new compiler

Stephen Weeks MLton@mlton.org
Fri, 12 Apr 2002 09:20:43 -0700


> [fluet@lennon temp]$ cat z.sml
> val _ = print "Hello World\n";
> [fluet@lennon temp]$ mlton -keep o z.sml 
> [fluet@lennon temp]$ nm z.0.o z.o  | grep U
...
>          U IntInf_init

Odd.  When I do the same test, my .o files do *not* contain
IntInf_init.  The only explanation I can think of is that I use gcc
3.0.3.  Are you using an older version?

> I checked in a new main.sml that lifts the -O switch to being common in
> both -native true and -native false.  That seems to fix the problem (so
> long as you don't compile with -O0).

Sounds good.  Given this, there's no need to split out IntInf_init
from IntInf.c, right?

_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel