`double' alignment in ocamlopt

From: William Chesters (williamc@dai.ed.ac.uk)
Date: Fri Apr 17 1998 - 19:17:46 MET DST

Date: Fri, 17 Apr 1998 18:17:46 +0100
Message-Id: <20432.199804171717@jupiter>
From: William Chesters <williamc@dai.ed.ac.uk>
To: caml-list@inria.fr
Subject: `double' alignment in ocamlopt

Would it be easy to modify ocamlopt so that it put "float array"s on
an 8-byte boundary? If I want to use Fortran libraries like lapack
with ocamlopt on a Sparc I have to copy them before giving them to the
Fortran code, or else get a bus error. I know the docs don't promise
that you can access doubles direct but it would be very nice.

[please don't read this bit ... :)]

Serait-il facile de modifier ocamlopt afin qu'il poserait les "float
array"s sur une adresse XXX0 ou XXX8? Si je veux utilitiser les
libraries Fortran (par exemple, lapack) avec ocamlopt sur un CPU
sparc, je dois copier tous mes "float array"s avant de les donner
lapack. Sinon ... "bus error".

This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:14 MET