From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: What's the purpose of the static library?
Date: Wed, 24 Sep 2008 20:09:46 +0000 (UTC) [thread overview]
Message-ID: <slrngdl7ka.r81.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <20080923101710.GA29133@annexia.org>
On 23-09-2008, Richard Jones <rich@annexia.org> wrote:
> On Tue, Sep 23, 2008 at 05:09:58PM +0800, bill yan wrote:
>
> Files: module.o and module.cmx --------------------
>
> These two files go together. The *.o file contains compiled native
> code in the normal system object file format. The *.cmx file contains
> metainformation about the machine code in the *.o file.
>
> Created by: 'ocamlopt -c module.ml'
>
> Used: When linking native code programs, or creating native code
> libraries.
>
> Note(1): You normally never need to specify the *.o files by hand. On
> the command line when the compiler sees a *.cmx file, it looks for the
> corresponding *.o file if it needs it.
>
> Note(2): It is thought that the *.cmx file needs to be around even
> when linking a library (*.cmxa) file in order to do cross-module
> function inlining. Both the Debian & Fedora packaging rules specify
> that *.cmx files be kept around for this reason. Whether this is
> really true or not is not certain.
>
Do you think *.cmx and *.o should be shipped?
Is *.cmx enough?
Regards
Sylvain Le Gall
next prev parent reply other threads:[~2008-09-24 20:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-22 3:36 bill yan
2008-09-22 9:35 ` [Caml-list] " Stéphane Glondu
2008-09-23 9:09 ` bill yan
2008-09-23 10:17 ` Richard Jones
2008-09-23 11:42 ` Alain Frisch
2008-09-23 12:49 ` Chris Conway
2008-09-24 11:24 ` [Caml-list] " Stefano Zacchiroli
2008-09-24 17:28 ` Richard Jones
2008-09-24 20:09 ` Sylvain Le Gall [this message]
2008-09-25 10:58 ` bill yan
2008-09-25 11:11 ` Alain Frisch
2008-10-08 3:20 ` bill yan
2008-10-08 3:29 ` bill yan
2008-09-23 10:24 ` Daniel Bünzli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrngdl7ka.r81.sylvain@gallu.homelinux.org \
--to=sylvain@le-gall.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox