From: Jeff Henrikson <jehenrik@yahoo.com>
To: Alain Frisch <alain.frisch@inria.fr>, caml-list@inria.fr
Subject: Re: [Caml-list] nonresolved .cma files and errors
Date: Wed, 11 Apr 2007 23:42:31 -0700 [thread overview]
Message-ID: <461DD4D7.2050703@yahoo.com> (raw)
In-Reply-To: <461C967A.6000007@inria.fr>
> .cma and .cmo files are not used during compilation.
Ah, of course. Rechecking my commands, your assertion is still
consistent. I thought I had counterintuitively gotten errors without
the .cma, and had subconsciously filed in my brain under "weird inlining
or something . . ." Well nice to know axiomatically that .cmo / .cma is
mutually exclusive with -c.
Yes if that's the case then I definitely think it should at least be a
warning to include such a file with -c.
OTOH, I see from the list archive that I'm not making up this inlining
across files thing . . .
http://caml.inria.fr/pub/old_caml_site/caml-list/0117.html
So if I understand correctly then, cross-file function inlining must by
design be delayed until link time?
Regards,
Jeff Henrikson
Alain Frisch wrote:
> .cma and .cmo files are not used during compilation. They make sense
> only for link operations (including -pack and -a). One might argue that
> the compiler should issue a warning when useless .cma and .cmo are given
> on the command line.
>
> -- Alain
>
Jeff Henrikson wrote:
> I recently had a shocking realization about why some of my experiments
> with camlp4 weren't compiling. I had been linking camlp4.cma, which was
> the old name of the library. Now camlp4.cma doesn't exist and there are
> multiple flavors Camlp4xxx.cma where the xxx is the same flavor notation
> of the the preprocessor binaries. So the trouble is, why was linking
> such a library not a fatal? Apparently all missing .cma and .cmo files
> passed on the command line are considered non-errors.
>
next prev parent reply other threads:[~2007-04-12 6:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-11 3:06 Jeff Henrikson
2007-04-11 6:58 ` [Caml-list] " Martin Jambon
2007-04-11 8:04 ` Alain Frisch
2007-04-12 6:42 ` Jeff Henrikson [this message]
2007-04-12 7:05 ` Alain Frisch
2007-04-11 11:35 ` Nicolas Pouillard
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=461DD4D7.2050703@yahoo.com \
--to=jehenrik@yahoo.com \
--cc=alain.frisch@inria.fr \
--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