From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA06286 for caml-redistribution; Thu, 2 Sep 1999 20:41:53 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA18192 for ; Wed, 1 Sep 1999 18:19:39 +0200 (MET DST) Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id SAA27598 for ; Wed, 1 Sep 1999 18:19:38 +0200 (MET DST) Received: from modem-125.prednisone.dialup.pol.co.uk ([62.136.84.253] helo=toy.william.bogus) by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #2) id 11MD6m-0007yT-00; Wed, 1 Sep 1999 17:19:36 +0100 Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id PAA03347; Wed, 1 Sep 1999 15:24:07 +0100 Date: Wed, 1 Sep 1999 15:24:07 +0100 Message-Id: <199909011424.PAA03347@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: karine CHEVALIER-JABET Cc: caml-list@inria.fr Subject: interfacing FORTRAN/OCAML?? In-Reply-To: <37CA7F0C.5ABA5136@baobab1.cad.cea.fr> References: <37CA7F0C.5ABA5136@baobab1.cad.cea.fr> X-Mailer: VM 6.34 under Emacs 20.2.1 Sender: weis karine CHEVALIER-JABET writes: > Hello, > > I would like to know if interfacing FORTRAN with OCAML is possible(OCAML > calling FORTRAN) One issue that comes up if you are running on a 32-bit RISC machine is alignment of doubles (8-byte floats): if you link against code which has been compiled to assume that they are all 8-byte aligned, and use it directly on ocaml float arrays, you get bus errors because ocaml (on 32-bit machines) only aligns to 4-byte boundaries. I have a patch for ocaml which makes it align doubles on 8-byte boundaries.