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 QAA31613; Thu, 12 Aug 2004 16:56:26 +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 QAA00145 for ; Thu, 12 Aug 2004 16:56:25 +0200 (MET DST) Received: from qrnik.knm.org.pl (paf87.warszawa.sdi.tpnet.pl [217.96.225.87]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i7CEuOmL018377 for ; Thu, 12 Aug 2004 16:56:24 +0200 Received: from qrnik ([192.168.0.1] ident=qrczak) by qrnik.knm.org.pl with esmtp (Exim 3.36 #1) id 1BvH06-0006Mb-00; Thu, 12 Aug 2004 16:56:18 +0200 Subject: Re: [Caml-list] The tag bit From: "Marcin 'Qrczak' Kowalczyk" To: "Bauer, Christoph" Cc: caml-list@inria.fr In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-2 Date: Thu, 12 Aug 2004 16:56:17 +0200 Message-Id: <1092322577.19848.87.camel@qrnik> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.2 Content-Transfer-Encoding: quoted-printable X-Miltered: at nez-perce with ID 411B8518.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 marcin:01 'qrczak':01 kowalczyk:01 qrczak:01 bauer:01 passing:01 marcin:01 kowalczyk:01 qrczak:01 ints:01 int:01 int:01 0200,:01 knm:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk W li=B6cie z czw, 12-08-2004, godz. 16:31 +0200, Bauer, Christoph napisa=B3= : > why is the tag bit for a int/pointer is stored in and not next to a > int/pointer. =20 > Isn't it possible to divide the memory in blocks of 33 (65 on 64 bit > machines) =20 > Words and the first Word contains all the tag bits? Value passing would be more complicated. If you apply a function to 2 arguments, now you pass it 2 words. In your scheme you would have to find and pass it 2 words plus 2 tag bits in a 3rd register. Currently a list of ints uses 3 words per element (a block whose first word is the header, and remaining words are head and tail). With your scheme it would be 4 words, i.e. 1/3 larger, not 1/32 larger. --=20 __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ ------------------- 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