List Info

Thread: "ocaml_beginners"::[] Where do those .o files come from ?




"ocaml_beginners"::[] Where do those .o files come from ?
country flaguser name
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 ?

Ewan

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Where do those .o files come from ?
country flaguser name
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.

Rich.

--
Richard Jones
Red Hat

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Yoga Groups

Exchange insights

with members of

the yoga community.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )