From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA05713; Thu, 29 Mar 2001 15:29:45 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA08034 for ; Thu, 29 Mar 2001 15:29:44 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f2TDTg923848; Thu, 29 Mar 2001 15:29:42 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA08036; Thu, 29 Mar 2001 15:29:42 +0200 (MET DST) Date: Thu, 29 Mar 2001 15:29:42 +0200 From: Xavier Leroy To: Markus Mottl Cc: caml-list@inria.fr Subject: Re: [Caml-list] Inline assembly? Message-ID: <20010329152942.E6876@pauillac.inria.fr> References: <20010322142826.B18008@pauillac.inria.fr> <20010323165915.A2990@miss.wu-wien.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010323165915.A2990@miss.wu-wien.ac.at>; from mottl@miss.wu-wien.ac.at on Fri, Mar 23, 2001 at 04:59:15PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > If the function operates over floats, there are other > > performance tricks one can play; write me if this is the case. > > I have some functions that return floats in the LAPACK-interface. They > could (slightly) benefit from more appropriate calling conventions. > > If I am not mistaken, it is not ok to use "noalloc" if the C-function uses > "copy_double", because the latter could trigger the GC. Correct. > If the function > returns a float, it seems that the additional annotation "float" could > be applied, but it is obviously not always used in the Pervasives library > (e.g. float_of_string; ld_exp). Currently, the "float" annotation works only for external functions where the result and all parameters are of type "float". Typically, transcendental and trigonometric functions. In this case, the arguments and result are passed unboxed, as C "double" floats. But it doesn't work for functions that take / return a mixture of floats and other data types. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr