caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Olivier Pérès" <olivier.peres@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] The tag bit
Date: Thu, 12 Aug 2004 17:10:04 +0200	[thread overview]
Message-ID: <411B884C.3020508@laposte.net> (raw)
In-Reply-To: <D981925B4F2CD611870300E0184CEE9B0157F25F@mail.lms-gmbh.de>

Bauer, Christoph wrote:
> Of couse this is just a naive idea, but please tell me why ;-)

    Well, I can see several reasons :
  * processors like powers of two, especially when it comes to the size 
of a memory address, because of cache issues, so you'd better make it 32 
or 64 words than 33 or 65.
  * If the tag bit can be anywhere in a word you have to spend extra 
time to extract it, whereas when it is at a fixed place, especially LSB 
or MSB, it is very cheap and easy.
  * You would need two registers to access a value and its tag instead 
of one, and registers are very precious, at least on IA-32 architectures.

    Olivier.

-------------------
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


  parent reply	other threads:[~2004-08-12 15:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-12 14:31 Bauer, Christoph
2004-08-12 14:55 ` Florian Hars
2004-08-12 14:56 ` Marcin 'Qrczak' Kowalczyk
2004-08-12 15:10 ` Olivier Pérès [this message]
2004-08-12 15:30 ` Brian Hurt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=411B884C.3020508@laposte.net \
    --to=olivier.peres@laposte.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).