[llvm-dev] Default compression level for -compress-debug-info=zlib?

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 2 17:35:22 PDT 2018


On 8/2/2018 5:12 PM, Fāng-ruì Sòng via llvm-dev wrote:
> For each debug section, a compression buffer of compressBound(sourceLen)
> bytes has to allocated first. zlib's compressBound is a theoretical
> maximum which is larger than sourceLen and can increase memory usage
> a lot, though usually only a small portion of the buffer is actually
> used.

zlib supports a streaming interface.  (LLVM currently doesn't use it, 
but it's not hard.)

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project



More information about the llvm-dev mailing list