Version française
Home     About     Download     Resources     Contact us    
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 
UTF-16.

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