3 ms·
The native binary produced by ocamlopt is 917KB, the bytecode produced by ocamlc is 156KB. I must admit I didn't expect such "big" files. Out of curiosity I t
by p4bl0 4y ago
The native binary produced by ocamlopt is 917KB, the bytecode produced by ocamlc is 156KB.
I must admit I didn't expect such "big" files.
Out of curiosity I tested to compile a completely empty OCaml program: the native binary is 365KB and the bytecode is 21KB.
- l33t2328 4y agoI don’t know much about OCaml but one reason could be linking unnecessary libraries
- chrisseaton 4y agoPresumably you’re linking in a large GC etc?