caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Michel Mauny <Michel.Mauny@inria.fr>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml on zLinux
Date: Fri, 05 Jul 2013 17:50:38 +0200	[thread overview]
Message-ID: <51D6EB4E.9030809@inria.fr> (raw)
In-Reply-To: <E51C5B015DBD1348A1D85763337FB6D9CC8A08A1@Remus.metastack.local>

David Allsopp écrit/writes [05/07/2013 09:55] :
> Michel Mauny wrote:

>> Now, I don't think it would be a good idea to call this ocamlopt, since
>> ocamlcc is an extension of ocamlc compilation chain, whereas ocamlopt is
>> not.
> 
> Is there not a case for being able to call it ocamlopt on architectures where there isn't an actual native code compiler, though? It would seem on the surface to allow OCaml to claim native code compilation on all architectures the compiler can be built on - even if on some presumably the native performance will not be as good as on others.

It would be more honest to claim native code compilation through a
compilation route made of ocamlc + ocamlcc. Calling this ocamlopt
would let think that a set of source files together with their
Makefile would just work, and this is not true. Options are different,
intermediate files are different, features are different, etc.

Having the same features as ocamlopt is an interesting goal, but it's
too early to wrap ocamlcc in something called ocamlopt.

And I'm still not sure it's a good idea at all :-)

> Are there (m)any cases where you'd want to use ocamlcc instead of
> ocamlopt on architectures which support the latter?

One case could be the distribution of software as a single bytecode
executable (no source) that could be changed into native code by
OCamlCC on any architecture where ocamlc is supported.

- Michel

-- 
Michel Mauny

ENSTA ParisTech

      reply	other threads:[~2013-07-05 15:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 14:18 Alain Frisch
2013-06-07 15:54 ` Stéphane Glondu
2013-07-03 15:49 ` Richard W.M. Jones
2013-07-04  1:08   ` Francois Berenger
2013-07-04  6:44     ` Michel Mauny
2013-07-04 21:38       ` Richard W.M. Jones
2013-07-05  7:09         ` Michel Mauny
2013-07-05  7:55           ` David Allsopp
2013-07-05 15:50             ` Michel Mauny [this message]

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=51D6EB4E.9030809@inria.fr \
    --to=michel.mauny@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;
as well as URLs for NNTP newsgroup(s).