Using OCaml library
The OCaml interface defines the modules Polka
, Vector
,
Matrix
and Poly
.
To compile a file `test.ml' into bytecode, first generate a
suitable custom bytecode interpreter with
-
`ocaml <options>
-make_runtime -o polkarun% polka.cma \
-cclib "-L<path> -lpolka%_caml
-lpolka% -lgmp -lcamlidl"'
You can then compile `test.ml' and link it with:
-
`ocamlc <options> -c test.ml'
-
`ocamlc -use_runtime polkarun% -o test polka.cma test.cmo'
To compile `test.ml' into native code:
-
`ocamlopt <options> -c test.ml'
-
`ocamlopt -o test polka.cmxa test.cmx \
-cclib "-L -lpolka%_caml -lpolka% -lgmp -lcamlidl"'
This document was generated
on October, 27 2006
using texi2html