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 PAA14834 for caml-redistribution@pauillac.inria.fr; Wed, 1 Sep 1999 15:29:18 +0200 (MET DST) Resent-Message-Id: <199909011329.PAA14834@pauillac.inria.fr> 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 JAA13551 for ; Tue, 31 Aug 1999 09:27:47 +0200 (MET DST) Received: from nenuphar.saclay.cea.fr (nenuphar.saclay.cea.fr [132.166.192.7]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id JAA19701 for ; Tue, 31 Aug 1999 09:27:46 +0200 (MET DST) Received: from orion.serma.cea.fr (orion.serma.cea.fr [132.166.151.161]) by nenuphar.saclay.cea.fr (8.9.1a/8.9.1/CEAnet-relay-5.0.D20) with ESMTP id JAA03516 for ; Tue, 31 Aug 1999 09:27:46 +0200 (MET DST) Received: from cea.fr (localhost [127.0.0.1]) by orion.serma.cea.fr (8.9.3/8.8.7) with ESMTP id JAA14317 for ; Tue, 31 Aug 1999 09:27:44 +0200 Sender: pgoldb@soleil.serma.cea.fr Message-ID: <37CB83F0.506A2A81@cea.fr> Date: Tue, 31 Aug 1999 07:27:44 +0000 From: Patrick Goldbronn - SYSCO Organization: CEA X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.9-27mdksmp-fb i686) X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: Pierre Weis Subject: Re: interfacing FORTRAN/OCAML?? References: <37CA7F0C.5ABA5136@baobab1.cad.cea.fr> <37CA99E6.F6616950@cea.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit Resent-From: weis@pauillac.inria.fr Resent-Date: Wed, 1 Sep 1999 15:29:18 +0200 Resent-To: caml-redistribution@pauillac.inria.fr karine CHEVALIER-JABET wrote: > > Hello, > > I would like to know if interfacing FORTRAN with OCAML is possible(OCAML > calling FORTRAN) ; I read it for C, but didn t see for Fortran. Does it > mean I shoud call fortran with C then C with OCAML? > > I guess this is a FAQ... > Thank you > > Karine Chevalier-Jabet In fact it is quite the same : you must interfacing C and fortran (it compiler dependent, for the name of function). You should read the compiler user guide (SUN is good for interfacing C and fortran) You can go in http://caml.inria.fr/hump.html#ffi (ocaml fortran interface) I know INRIA works on an libraries which allow facilities to use big array outside the heap (if you have such trouble). For instance I have wrote a litle interface between C and fortran array. If you are interested, I can send it to you. Bests Regards -- ##################################### # Patrick GOLDBRONN # # CEA - DRN/DMT/SYSCO # # CE-Saclay, Bâtiment 460 # # 91191 GIF/YVETTE CEDEX (FRANCE) # # # # Tél : 01 69 08 40 66 # # Fax : 01 69 08 96 96 # #####################################