[MLton-devel] Fwd: C back end for MLton

Suresh Jagannathan suresh@cs.purdue.edu
Mon, 4 Nov 2002 10:31:06 -0500


I received the following from Brad Lucier, a professor of Mathematics
here who till now has been a big Gambit fan (he helped write their
bignum package, and has worked on their runtime), but who is now
considering using MLton for both research as well as course work.
He sent the following; has anyone tried compiling against gcc 3.3?
(His interest in the C-backend is because he uses mostly Alpha's and
PowerPc's in his work.)

-- sj



----------  Forwarded Message  ----------

Subject: C back end for MLton
Date: Sun, 3 Nov 2002 22:55:50 -0500 (EST)
From: Brad Lucier <lucier@math.purdue.edu>
To: suresh@cs.purdue.edu
Cc: lucier@math.purdue.edu

I looked at the C back end for MLton.  I didn't understand a word, of
course, but I do know a fair amount about Gambit's C backend strategy,
and I think you could get the C back end of MLton to generate *much*
faster code.

BTW, mlton won't build with gcc 3.3 (the development version).  There's
a problem in basis/Int/quot.c; the warnings are typical of the warnings
for other files in this directory.

make[2]: Entering directory `/home/lucier/programs/mlton-20020923/runtime'
if [ linux = freebsd ] && ! [ -r gmp.h -a -r libgmp.a ]; then   \
        cp /usr/local/lib/mlton/self/libgmp.a
 /usr/local/lib/mlton/self/include/gmp.h ./;               \ fi
gcc -Wall -I. -mcpu=pentiumpro -malign-loops=2 -malign-jumps=2
 -malign-functions=5 -fomit-frame-pointer  -O1 -DNODEBUG -c -o
 basis/Int/quot.o basis/Int/quot.c cc1: warning: -malign-loops is obsolete,
 use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
basis/Int/quot.c: In function `Int_quot':
basis/Int/quot.c:10: error: asm-specifier for variable `eax' conflicts with
 asm clobber list
make[2]: *** [basis/Int/quot.o] Error 1
make[2]: Leaving directory `/home/lucier/programs/mlton-20020923/runtime'
make[1]: *** [runtime] Error 2
make[1]: Leaving directory `/home/lucier/programs/mlton-20020923'
make: *** [all] Error 2
[lucier@dsl-207-066 mlton-20020923]$ gcc -v
Reading specs from /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../configure --prefix=/usr/local/gcc-3.3 --disable-checking
 --enable-languages=c,c++ Thread model: posix
gcc version 3.3 20021016 (experimental)

Brad

-------------------------------------------------------


-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel