[MLton-devel] Fwd: C back end for MLton (fwd)

Matthew Fluet fluet@CS.Cornell.EDU
Tue, 5 Nov 2002 13:47:33 -0500 (EST)


---------- Forwarded message ----------
Date: Tue, 5 Nov 2002 12:46:01 -0600
From: Henry Cejtin <henry@sourcelight.com>
To: fluet@CS.Cornell.EDU
Subject: Re: [MLton-devel] Fwd: C back end for MLton

As Matt says, the asm was an attempt to tie down the semantics for negative
operands to match the standard.  I seem to remember seeing cases where if
things were constants gcc would sometimes do the computation in a different
way.  Something about a % b where a was negative non-constant and b was a
constant power of 2 which gcc would compile into a bit-wise and, which is
legal for C but not for ML.  Any way, something like that.



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel