From: Tore Lund <tl001@online.no>
To: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Porting to EPOC
Date: Tue, 29 May 2001 16:10:25 +0200 [thread overview]
Message-ID: <3B13ADD1.5C30D630@online.no> (raw)
In-Reply-To: <20010529140045.A7610@pauillac.inria.fr>
Xavier Leroy wrote:
>
> [ Cross-compiling OCaml bytecode for a runtime system containing
> platform-specific external functions. ]
>
> > I notice there is an undocumented compiler switch -use-prims <file>.
> > Maybe this would solve my problem if I knew the format of <file>?
>
> Yes, -use-prims is exactly what you need. The format is one C
> function name per line, in the exact order in which they appear in the
> table cprim[] in byterun/prims.c.
>
> Even easier: building the runtime system in byterun produces the file
> byterun/primitives, which happens to have exactly the right format. Whopee!
Sorry, doesn't work. I try to compile the following file:
let _ = c_test ();;
and all I get is this:
C:\Data\ocaml>ocamlc -use-prims prims ctest.ml
File "ctest.ml", line 1, characters 8-14:
Unbound value c_test
even though I have put c_test at the bottom of the list in prims.
Any ideas?
--
Tore
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-05-29 14:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-29 9:07 Tore Lund
2001-05-29 12:00 ` Xavier Leroy
2001-05-29 14:10 ` Tore Lund [this message]
2001-05-29 14:22 ` Alain Frisch
2001-05-29 14:59 ` Tore Lund
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=3B13ADD1.5C30D630@online.no \
--to=tl001@online.no \
--cc=caml-list@pauillac.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