English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
interfacing FORTRAN/OCAML??
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-09-02 (18:41)
From: William Chesters <williamc@d...>
Subject: interfacing FORTRAN/OCAML??
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.