Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Damien Doligez <Damien.Doligez@inria.fr>
To: caml-list@inria.fr, dmcclain@azstarnet.com
Subject: Re:  Mac version of OCAML?
Date: Wed, 20 Sep 2000 18:47:35 +0200	[thread overview]
Message-ID: <200009201647.SAA12621@tobago.inria.fr> (raw)

>From: "David McClain" <dmcclain@azstarnet.com>

>I am about to embark on benchmarking of ultra-fast embedded C flight-code
>that must run on a bank of Power/PC's mixed with a bank of TigerSHARC's.
>Hence the target platform for my tests will be a Macintosh/604.

Too bad it cannot be a G3 or a G4; you'd be able to use the Unix
version of O'Caml under MacOS X.


>Before I get too far along I want to ask any who might know, whether or not
>the Mac version of OCaml can interface to foreign C code produced by the
>Metrowerks C compiler.

O'Caml on MacOS works under MPW Shell in much the same way as it works
under Unix, but it is restricted to byte-code.  It can interface to C
code without problems, but I've given up on the Metrowerks C compiler
for various reasons.  One of these reasons was a bug in the compiler
when calling a function with floating-point arguments with Apple's
calling conventions, hence I couldn't use Apple's libraries with the
Metrowerks compiler.  And Metrowerks' libraries had bugs that
prevented O'Caml from working.  I'm not sure I have the latest version
of Codewarrior, so I don't know if these problems still exist.


> When I last used the Mac version (c.a., 2.02) it was
>still interpreted instead of compiled, and I don't recall whether it could
>be interfaced to foreign code.

There is no interpreter for O'Caml.  There is native-code compilation
and byte-code compilation.  Byte-code can be interfaced with foreign
code without problem.

Depending on your constraints, you might be able to use LinuxPPC on
your Mac.  Then you'll have the full-fledged Unix version of O'Caml.

-- Damien



             reply	other threads:[~2000-09-20 19:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-20 16:47 Damien Doligez [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-18 19:56 David McClain

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=200009201647.SAA12621@tobago.inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=dmcclain@azstarnet.com \
    /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