Version française
Home     About     Download     Resources     Contact us    
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: bill yan <Xue-Yang.Yan@S...>
Subject: Re: [Caml-list] What's the purpose of the static library?
Hi Stéphane,

Thanks a lot for your information. And we'd like to know more about the 
OCaml library architectures, like on what situation dynamic libraries 
are used, and when static libraries are used, and so on.. Really 
appreciate if you could point me to a document that can help on this topic.

Regards,
Bill

Stéphane Glondu 已写入:

> 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.
>
>
> Cheers,
>