Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.