[LLVMdev] More Encoding Ideas

Reid Spencer reid at x10sys.com
Fri Aug 20 19:12:39 PDT 2004


On Fri, 2004-08-20 at 19:20, Chris Lattner wrote:
> 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.

Yes.

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

Yes.

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040820/5e83053d/attachment.sig>


More information about the llvm-dev mailing list