Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocamlopt with external function taking more than 5 params
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] ocamlopt with external function taking more than 5 params
On Tue, Aug 05, 2003 at 12:50:11PM -0400, Lars Nilsson wrote:
> Hi all,
> 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). For some reason it does not appear that the native code
> version is being called properly. If anyone can shed any light on this I
> would be very grateful...

> [c-tester.c]
> 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)
> {

These two are reversed.  The native code version calls with all of the
arguments, whereas the bytecode version passes in an array.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: