Allocating on doublewords; was: About adding embedded user types into Ocaml bytecode runtime

From: William Chesters (williamc@dai.ed.ac.uk)
Date: Mon Feb 22 1999 - 16:34:29 MET


Date: Mon, 22 Feb 1999 15:34:29 GMT
Message-Id: <199902221534.PAA01464@toy.william.bogus>
From: William Chesters <williamc@dai.ed.ac.uk>
To: caml-list@inria.fr
Subject: Allocating on doublewords; was: About adding embedded user types into Ocaml bytecode runtime
In-Reply-To: <14029.60279.635622.205882@amadeus.lesours.fr>

Basile STARYNKEVITCH writes:
> However, on some 32 bits machines (those, like old Sparcs, which
> requires doubleword aligned double precision floats) the user data
> objects should either always be allocated at a doubleword (this is
> probably tricky, but useful)

Actually it's not that difficult, and I have done it for float arrays
because I use lapack on Suns. If anyone wants the patch, they can
have it. It's not pretty, and I've not really used it hard enough to
be sure it never causes problems, but so far it seems to work.



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