Notes (OFVB 16/31): Building Bigger Programs
Erratum: Should be ocamlc textstat.ml
, not ocamlc textstate.ml
If you compile with the interface file second with:
ocamlc textstat.ml textstat.mli
You get an
Error: The files textstat.cmo and textstat.cmi make inconsistent assumptions
over interface Textstat
You need to compile with the interface first.
Questions
1
2
3
Need nums.cma
for ocamlc
and nums.cmxa
for ocamlopt
.
Compiling with ocamlc
, factorial 100000
took 10 seconds. With ocamlopt
, also 10 seconds.