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: 2008-10-08 (03:26)
From: bill yan <Xue-Yang.Yan@S...>
Subject: Re: [Caml-list] What's the purpose of the static library?
Thanks for the help. Another question, It seems *.cma *.cmxa *.a are all 
native code libraries, why are there so many suffix? Is there any 
difference between cma, cmxa and a?

Alain Frisch 已写入:

> bill yan wrote:
>> By my understanding, unlike and liblibrary.a give user 
>> an option to choose compile dynamically or staticly, it seems for 
>> library.a, user can only choose static method. Does that mean 
>> "compiled native code" can only be staticly linked to user's 
>> application?
> In OCaml 3.11, it will be possible to link native code (found in 
> library.a or module.o files) into .cmxs files that can be explicitly 
> loaded at runtime (with the same API as for bytecode Dynlink).
> Alain
> _______________________________________________
> Caml-list mailing list. Subscription management:
> Archives:
> Beginner's list:
> Bug reports: