CAMLprim, CAMLexport, CAMLextern

Where can I find a complete list of OCaml primitives implemented in C? Is this enough for grep 'CAMLprim' <ocamlsourcetree>/byterun/*.c

, or do I need to search for CAMLexport

both CAMLextern

, or what else?

(note: searching for declarations external

in .ml, .mli files is not enough, because I need also all the primitives caml_*

mentioned by bytecomp / translcore.ml for special %someide

external ones)

+3


source to share


1 answer


You can use:

ocamlrun -p

      



to get a complete list of the default primitives available at runtime.

+5


source







All Articles