[MLton-devel] cvs commit: using header words as variant tags

Matthew Fluet fluet@CS.Cornell.EDU
Sun, 2 Feb 2003 12:33:32 -0500 (EST)


>   One question about the native codegen: the variant tags for a
>   particular datatype will be consecutive integers, but not starting at
>   zero.  Is the codegen smart enough to do a subtract and make a jump
>   table?

Yes.  reduce  x86-generate-transfers: 1353  takes a case transfer and
computes minK, maxK, shift, and mask which are used to "normalize" the
transfer; it compensates for non-zero minK, tags that are all even or all
odd, and checks a density criteria.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel