3 ms·
One question: what is the binary size of the compiler?
by shadowofneptune 4y ago
One question: what is the binary size of the compiler?
- p4bl0 4y agoThe 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?