Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
msvc64 port produces bytecode executables that don't work on 32-bit versions #5115
Original bug ID: 5115
In the 64-bit MSVC version, output-value does the wrong thing on native ints and makes them unreadable by 32-bit versions of OCaml.
Also, if a 64-bit version of OCaml compiles a program with a large nativeint constant, the resulting bytecode will crash the 32-bit versions because they try to raise an exception before the global constants are initialized.
Steps to reproduce
Bootstrap with MSVC in 64-bit mode and try to use the resulting ocamlc, e.g. under cygwin -> crash