Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] The tag bit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Florian Hars <hars@b...>
Subject: Re: [Caml-list] The tag bit
Bauer, Christoph wrote:
> Isn't it possible to divide the memory in blocks of 33 (65 on 64 bit 
> machines) Words and the first Word contains all the tag bits?

Good idea, but lets go the whole way: I always thougth the decision to have 
eight bits to a byte instead of nine most unfortunate. Why don't we just add a 
bit to all our bytes, we could express so much more per byte? Just imagine the 
possibilities in I18N:  UTF-18 would need considerably less plane shifting that 

(On a more serious note: You propose to turn the tag bit into a tag long word, 
requiring two memory acesses instead of one and blowing up the storage 
requriments for ints and pointers by a factor of two, which will slow down 
about everything. You can get more or less the same effects now without any 
change to the compiler by using Int32.)

Yours, Florian.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: