[LLVMdev] More Encoding Ideas
Chris Lattner
sabre at nondot.org
Fri Aug 20 19:20:59 PDT 2004
On Fri, 20 Aug 2004, Reid Spencer wrote:
> > It's 127 right, not 63? Also, what does this have to do with sbyte vs
> > ubyte?
>
> No, its 63. Signed bit takes up one bit and "continue bit" takes up
> another so signed values 0-63 get the first byte and 64-127 get the
> second, etc.
Just to clarify, it's actually -64 -> 63 that are one byte values.
> Removing the Module ID field doesn't affect that. As Robert pointed out,
> if we're not done reading the file by the time the "size" field runs out
> then there's more in the file, either more modules or "random cruft" :)
Ah, even better!
-Chris
--
http://llvm.org/
http://nondot.org/sabre/
More information about the llvm-dev
mailing list