From: Damien Doligez <Damien.Doligez@inria.fr>
To: "Lars Nilsson" <lars@quantumchamaeleon.com>
Cc: "Caml List" <caml-list@pauillac.inria.fr>
Subject: Re: [Caml-list] ocamlopt with external function taking more than 5 params
Date: Thu, 7 Aug 2003 14:47:50 +0200 [thread overview]
Message-ID: <5A714C82-C8D5-11D7-887E-0030657B6F2E@inria.fr> (raw)
In-Reply-To: <000701c35b71$a29daba0$500010ac@cymfony.com>
On Tuesday, Aug 5, 2003, at 18:50 Europe/Paris, Lars Nilsson wrote:
> I am wondering if I am doing something wrong, or if I am experiencing
> a bug.
> I am trying to implement a function in C that takes more than 5
> parameters
> (8 in my real code).
[...]
> The resulting output for the ocamlopt compiled program is
>
> Pointer = 0x3, N = 5
Note that 0x3 is the representation of 1 as an O'Caml value, and
5 is the representation of 2.
> CAMLprim void tester_bytecode(value a, value b, value c, value d,
> value e, value f, value g, value h)
> CAMLprim void tester_native(value *argv, int argc)
You have them reversed. The native-code version should take 8
arguments, and the byte-code version should take argv and argc.
-- Damien
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2003-08-07 12:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-05 16:50 Lars Nilsson
2003-08-05 16:47 ` David Brown
2003-08-05 17:18 ` Pixel
2003-08-07 12:47 ` Damien Doligez [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=5A714C82-C8D5-11D7-887E-0030657B6F2E@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@pauillac.inria.fr \
--cc=lars@quantumchamaeleon.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