Closed stedolan closed 1 month ago
Adds malfunction cmo foo.mlf to compile malfunction files to OCaml bytecode cmo files, for later linking with ocamlc.
malfunction cmo foo.mlf
cmo
ocamlc
Try with:
opam pin add malfunction https://github.com/stedolan/malfunction.git#bytecode-compilation malfunction cmo program.mlf ocamlc program.cmo -o program.byte ./program.byte
Like malfunction cmx, if the module being compiled has an OCaml signature (a mli file), you'll need to compile that with ocamlc -c module.mli first.
malfunction cmx
mli
ocamlc -c module.mli
Adds
malfunction cmo foo.mlf
to compile malfunction files to OCaml bytecodecmo
files, for later linking withocamlc
.Try with:
Like
malfunction cmx
, if the module being compiled has an OCaml signature (amli
file), you'll need to compile that withocamlc -c module.mli
first.