Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
What's the purpose of the static library?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stéphane_Glondu <steph@g...>
Subject: Re: [Caml-list] What's the purpose of the static library?
bill yan a écrit :
> I noticed there are some static libraries(.a) installed with ocaml, for
> example, /usr/lib/ocaml/bigarray.a. What's the purpose of those static
> libraries? Thanks a lot.

They contain (natively) compiled OCaml code. An OCaml library compiled 
in native mode (usually) consists of a .a and a .cmxa file, the former 
containing OCaml-specific information.

They are not to be confused with lib*.a files, which contain compiled C 
stubs, and are needed for generating native-code executables, and 
bytecode ones in -custom mode.