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: Bauer, Christoph <Christoph.Bauer@l...>
Subject: [Caml-list] The tag bit
Hello Caml-list,

why is the tag bit for a int/pointer is stored in and not next to a
int/pointer. 
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? Then we can enjoy an
extra bit, some arithmetic operations could be done faster and all floats
could
be unboxed.

Of couse this is just a naive idea, but please tell me why ;-)

Regards,
Christoph Bauer