[PATCH] D154638: Emit a .debug_addr section with dsymutil

Shubham Sandeep Rastogi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 14:48:08 PDT 2023


rastogishubham added a comment.

In D154638#4478628 <https://reviews.llvm.org/D154638#4478628>, @avl wrote:

> Could you compare size of .debug_info, .debug_addr sections for clang binary with and without this patch, please?

The size of a clang.dSYM debug_info section built with `-gdwarf-5` without this patch is 930,375,162 Bytes or 930 MB

The size of a clang.dSYM debug_info + debug_addr section built with `-gdwarf-5` with this patch is 914,086,636 Bytes or 914 MB

I would also like to note, that at the moment I am not optimizing for the addrx values, i.e. no work is done to sort the addrx values by frequency to optimize the size of the addrx values in the debug info section based on frequency, and we still get a modest 1.8% decrease in size


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154638/new/

https://reviews.llvm.org/D154638



More information about the llvm-commits mailing list