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 MAA07747; Sat, 24 Jul 2004 12:39:50 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 MAA07118 for ; Sat, 24 Jul 2004 12:39:46 +0200 (MET DST) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6OAdjEV008716 for ; Sat, 24 Jul 2004 12:39:46 +0200 Received: from fichte.ai.univie.ac.at (markus@localhost [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6OAd7Du027321; Sat, 24 Jul 2004 12:39:07 +0200 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-6.6) id i6OAd7UG027320; Sat, 24 Jul 2004 12:39:07 +0200 Date: Sat, 24 Jul 2004 12:39:07 +0200 From: Markus Mottl To: "Brandon J. Van Every" Cc: caml Subject: Re: [Caml-list] Bigarray is a pig Message-ID: <20040724103907.GA26157@fichte.ai.univie.ac.at> Mail-Followup-To: "Brandon J. Van Every" , caml References: <20040723.230533.104027451.oandrieu@nerim.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce with ID 41023C71.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 brandon:99 extern:01 ocamlopt:01 ignores:01 mli:01 asmcomp:01 compiler:01 implements:01 bigarray:01 bigarray:01 primitives:01 mottl:02 mottl:02 external:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, 24 Jul 2004, Brandon J. Van Every wrote: > You are saying that even though Bigarray declares its array element > access functions as EXTERN, and implements them in C code, that ocamlopt > ignores this and does something else? Using some completely different > source code, perhaps? (And where is that code?) If you take a close look at bigarray.mli, you'll see that the access functions "get" and "set" are not normal external functions but start with a "%". This means they are primitives that the compiler can handle in a specific way. Look at the file asmcomp/cmmgen.ml to see the details. Regards, Markus -- Markus Mottl http://www.oefai.at/~markus markus@oefai.at ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners