Thread: "ocaml_beginners"::[] Where do those .o files come from ?
"ocaml_beginners"::[] Where do
those .o files come from ?
United States
2007-07-22 02:59:46
Hello all,
when I use ocamlopt, it creates not only a *.cm[ix] for each .ml file, but also
a .o for each .ml file (although I do not use C programs at all in my OCaml code).
Is that a normal behaviour ?
Re: "ocaml_beginners"::[]
Where do those .o files come from ?
United Kingdom
2007-07-22 12:34:37
On Sun, Jul 22, 2007 at 07:59:46AM -0000, roparzhhemon wrote:
> when I use ocamlopt, it creates not only a *.cm[ix] for each .ml
> file, but also a .o for each .ml file (although I do not use C
> programs at all in my OCaml code). Is that a normal behaviour ?
Yes. The '*.o' file contains the actual machine code which implements
your functions. The '*.cmx' file just contains some meta-information.