Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Goswin von Brederlow <goswin-v-b@web.de>
To: Adrien <camaradetux@gmail.com>
Cc: Eray Ozkural <examachine@gmail.com>,
	caml-list@yquem.inria.fr,
	Basile Starynkevitch <basile@starynkevitch.net>,
	Paul Steckler <steck@stecksoft.com>,
	Richard Jones <rich@annexia.org>
Subject: Re: [Caml-list] More re GC hanging
Date: Wed, 25 Aug 2010 17:17:14 +0200	[thread overview]
Message-ID: <87d3t6bu2t.fsf@frosties.localdomain> (raw)
In-Reply-To: <AANLkTimdjc5vEUaF1ZYbV76TB5UqsQ=taFmf2b1P8G3g@mail.gmail.com> (Adrien's message of "Sun, 22 Aug 2010 15:02:27 +0200")

Adrien <camaradetux@gmail.com> writes:

> Also, I found out that I had a pretty ugly error in my C bindings but
> it looks like it had no bad impact.
> Basically, I had 'external ml_f : *string* -> string array' but the C
> side read 'value ml_f()': the C function took *no* argument while
> ocaml was passing one (I wasn't actually using the argument). Has
> anything been developped against that? Anything to warn about errors
> in bindings?

That actually makes no problem on any architecture afaik. The parameter
will be placed in a register or on stack and never accessed. The GC
might move the value around making the register/stack value invalid, but
you never access it anyway.

I don't think there is anything that will verify that the external
declaration and C side have the same number of arguments.

MfG
        Goswin


  reply	other threads:[~2010-08-25 15:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15  5:57 Paul Steckler
2010-08-15  7:03 ` [Caml-list] " Basile Starynkevitch
2010-08-15  8:34   ` Paul Steckler
2010-08-15  8:40   ` Paul Steckler
2010-08-15  9:16     ` Basile Starynkevitch
     [not found]       ` <AANLkTi=-8ZcxSy08fsh8wkTvscGLYzBsqN07OmOi5o6d@mail.gmail.com>
2010-08-15  9:55         ` Fwd: " Paul Steckler
2010-08-15 10:41           ` Fwd: " Sylvain Le Gall
2010-08-15 11:32             ` [Caml-list] " Vincent Hanquez
2010-08-15 10:45       ` [Caml-list] " Adrien
2010-08-15 11:17         ` David Allsopp
2010-08-15 12:12         ` Basile Starynkevitch
2010-09-01 15:24         ` Damien Doligez
2010-09-01 16:44           ` Adrien
2010-08-15 10:19     ` rixed
2010-08-20 15:21   ` Richard Jones
2010-08-20 23:30     ` Eray Ozkural
2010-08-22 13:02       ` Adrien
2010-08-25 15:17         ` Goswin von Brederlow [this message]
2010-08-18 12:22 ` Goswin von Brederlow

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=87d3t6bu2t.fsf@frosties.localdomain \
    --to=goswin-v-b@web.de \
    --cc=basile@starynkevitch.net \
    --cc=camaradetux@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=examachine@gmail.com \
    --cc=rich@annexia.org \
    --cc=steck@stecksoft.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