From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA22549 for caml-redistribution; Mon, 22 Feb 1999 18:10:08 +0100 (MET) 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 QAA21783 for ; Mon, 22 Feb 1999 16:35:20 +0100 (MET) Received: from smtp3.xs4all.nl (smtp3.xs4all.nl [194.109.6.53]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id QAA10776 for ; Mon, 22 Feb 1999 16:35:18 +0100 (MET) Received: from toy.william.bogus (dc2-modem3113.dial.xs4all.nl [194.109.140.41]) by smtp3.xs4all.nl (8.8.8/8.8.8) with ESMTP id QAA14298 for ; Mon, 22 Feb 1999 16:35:16 +0100 (CET) Received: (from williamc@localhost) by toy.william.bogus (8.8.7/8.8.7) id PAA01464; Mon, 22 Feb 1999 15:34:29 GMT Date: Mon, 22 Feb 1999 15:34:29 GMT Message-Id: <199902221534.PAA01464@toy.william.bogus> From: William Chesters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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> References: <14029.60279.635622.205882@amadeus.lesours.fr> X-Mailer: VM 6.34 under Emacs 20.2.1 Sender: weis 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.