[LLVMdev] Which is more compact, .bc or .ll.gz? And what might be even more compact?

Edmund Grimley-Evans Edmund.Grimley-Evans at arm.com
Wed Dec 15 04:26:50 PST 2010


Thanks for the advice.

I tried comparing LLVM bitcode, LLVM assembly, and x86 binary with all the files stripped and LZMA-compressed.

The compressed LLVM assembly was very slightly smaller than the compressed LLVM bitcode. Both were about 1.45 the size of the compressed native binary.

That's not a very exciting ratio. However, perhaps it's interesting that the bitpacking and other ad hoc compression techniques used in LLVM bitcode seem to get in the way of standard compression algorithms.

Of course the compression techniques used in LLVM bitcode have the advantage that they allow the data to be selectively parsed.

Edmund
-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.




More information about the llvm-dev mailing list