[MLton-devel] upcoming release

Matthew Fluet fluet@cs.cornell.edu
Tue, 15 Jul 2003 12:18:39 -0400 (EDT)


> > 2. How far along is the native codegen Int64 support?
> >
> > Matthew, can you comment on (2)?
>
> I haven't had any time to look at native codegen support for Int64, even
> the simplest form of using FFI's.  I don't think I'll be able to look at
> it until at least this weekend, and I don't know if a day or two will
> be long enough to work out all the bugs.

The following program segfaults under the C-codegen:

val a = Int64Array.tabulate
        (valOf Int.maxInt, fn i =>
	 Int64.fromInt i)
val i = Int64Array.sub(a, (valOf Int.maxInt) - 2)
val _ = print ((Int64.toString i) ^ "\n")


gdb shows the segfault at:
	X(Int64, P_0, I32_0) = I64_0;
which seems consistent with an overflow when computing the address of the
location into that long long array.



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel