> Is there a way to turn integer (int) overflow detection off? You can compile with the (undocumented) constant setting -const 'MLton.detectOverflow false' Look for definition of "detectOverflow" in basis-library/misc/primitive.sml and its other uses in the basis library sources if you're interested to see how this works.