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
getting the system architecture
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julien Moutinho <julien.moutinho@g...>
Subject: Re: [Caml-list] getting the system architecture
On Fri, Aug 03, 2007 at 09:54:17AM -0700, Eric Merritt wrote:
>  It actually helps a lot. I wasn't quite  expect you to do it all for
> me. Thanks, this saved me a bunch of time in doing it myself and
> figuring out the ffi which I haven't used before. I owe you one.

Just be careful to protect Ocaml values with CAMLparam*
and to declare them with CAMLlocal* if you care about your sleep;
'cause the ``due to garbage collection'' bug may be hard to find
or reproduce.

A few pointers, if you haven't them already: