[LLVMdev] bitcode / bytecode

108 views
Skip to first unread message

Ariel Feinerman

unread,
Sep 29, 2010, 7:04:07 AM9/29/10
to llv...@cs.uiuc.edu
Hi list,

As long as I know English the word "bit" is a "small pice", . Why in set of documentation ir is "bytecode", in other set or llvm source is "bitecode"?
What is the right? Different people call the same thing such differently.

--
best regards
Ariel

Duncan Sands

unread,
Sep 29, 2010, 7:40:56 AM9/29/10
to llv...@cs.uiuc.edu
Hi Ariel,

> As long as I know English the word "bit" is a "small pice", . Why in set of
> documentation ir is "bytecode", in other set or llvm source is "bitecode"?
> What is the right? Different people call the same thing such differently.

it used to be called bytecode, now it is called bitcode, but not all
documents were updated it seems.

Ciao,

Duncan.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Duncan Sands

unread,
Sep 29, 2010, 7:51:13 AM9/29/10
to Ariel Feinerman, LLVMdev
Hi Ariel,

> can you say what was the reason to rename bytecode? I am still interesting in

you forgot to send this to the mailing list, so I have (probably someone there
knows better than I). I think the reason is that bitcode is bit-packed, i.e.
you can have multiple pieces of information stored in one byte, so byte code
was a misnomer.

Ciao,

Duncan.

>
> 2010/9/29 Duncan Sands <bald...@free.fr <mailto:bald...@free.fr>>


>
> Hi Ariel,
>
> > As long as I know English the word "bit" is a "small pice", . Why in set of
> > documentation ir is "bytecode", in other set or llvm source is "bitecode"?
> > What is the right? Different people call the same thing such differently.
>
> it used to be called bytecode, now it is called bitcode, but not all
> documents were updated it seems.
>
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list

> LLV...@cs.uiuc.edu <mailto:LLV...@cs.uiuc.edu> http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
> --
> best regards
> Ariel

Ariel Feinerman

unread,
Sep 29, 2010, 8:15:58 AM9/29/10
to llv...@cs.uiuc.edu
Anyone,


can you say what was the reason to rename bytecode? I am still interesting in

2010/9/29 Duncan Sands <bald...@free.fr>
--
best regards
Ariel

Bill Wendling

unread,
Sep 29, 2010, 6:12:52 PM9/29/10
to Ariel Feinerman, llv...@cs.uiuc.edu
Chris rewrote the original LLVM bytecode into it's present bitcode form. The newer code is much smaller than the previous form. That would be my guess for why he chose to call it bitcode. Of course, he can say for himself. :-)

-bw

> _______________________________________________


_______________________________________________

Chris Lattner

unread,
Sep 29, 2010, 6:34:46 PM9/29/10
to Bill Wendling, llv...@cs.uiuc.edu

On Sep 29, 2010, at 3:12 PM, Bill Wendling wrote:

> Chris rewrote the original LLVM bytecode into it's present bitcode form. The newer code is much smaller than the previous form. That would be my guess for why he chose to call it bitcode. Of course, he can say for himself. :-)

The format is literally a bitstream, not a bytestream. See this document for more details:
http://llvm.org/docs/BitCodeFormat.html

-Chris

Joachim Durchholz

unread,
Sep 30, 2010, 8:26:40 AM9/30/10
to llv...@cs.uiuc.edu
Am 30.09.2010 00:34, schrieb Chris Lattner:
>
> The format is literally a bitstream, not a bytestream. See this document for more details:
> http://llvm.org/docs/BitCodeFormat.html

Ah... something I always meant to ask: How does the LLVM infrastructure
deal with the added overhead of packing/unpacking a bitstream?
Ignore it since modern CPUs can deal with that?
Some ingenious algorithm?

Last time I heard about a bitstream format was with the i432, where
hindsight lore has it that bitstreams are just too complicated to
maintain, but I guess some things might have changed since then.

Regards,
Jo

Chris Lattner

unread,
Sep 30, 2010, 12:09:57 PM9/30/10
to Joachim Durchholz, llv...@cs.uiuc.edu

On Sep 30, 2010, at 5:26 AM, Joachim Durchholz wrote:

> Am 30.09.2010 00:34, schrieb Chris Lattner:
>>
>> The format is literally a bitstream, not a bytestream. See this document for more details:
>> http://llvm.org/docs/BitCodeFormat.html
>
> Ah... something I always meant to ask: How does the LLVM infrastructure
> deal with the added overhead of packing/unpacking a bitstream?
> Ignore it since modern CPUs can deal with that?
> Some ingenious algorithm?

We don't do anything tricky, feel free to look at the source in llvm/lib/Bitcode.

-Chris

Reply all
Reply to author
Forward
0 new messages