pawel k. via llvm-dev
2021-Apr-16 13:59 UTC
[llvm-dev] Is clang genned debuginfo really that huge
Hi, Slightly weekendy offtopic on debug info and stacktraces as afterthought on my fight with building clang on lowbie machine and how not to approach this area. Slightly neg example: golang. https://social.lansky.name/@hn100/106075246574771701 Sorry for offtop and have a nice weekend, Pk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210416/17d12373/attachment.html>
In a RelWithDebInfo (-g -O2) build of Clang, over 90% of the final executable size is DWARF information. The percentage will be lower with a Debug build, but I don’t have an actual number for that. You can look at the sizes of ELF sections whose names start with .debug_ to see for yourself. --paulr From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of pawel k. via llvm-dev Sent: Friday, April 16, 2021 10:00 AM To: llvm-dev <llvm-dev at lists.llvm.org> Subject: [llvm-dev] Is clang genned debuginfo really that huge Hi, Slightly weekendy offtopic on debug info and stacktraces as afterthought on my fight with building clang on lowbie machine and how not to approach this area. Slightly neg example: golang. https://social.lansky.name/@hn100/106075246574771701<https://urldefense.com/v3/__https:/social.lansky.name/@hn100/106075246574771701__;!!JmoZiZGBv3RvKRSx!prx6BiBJgvf-zJPhNmN0GKNXyFhCefia5K9p6Rd_3wnex5bVdKFDoLpex_Ev5XUsKw$> Sorry for offtop and have a nice weekend, Pk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210416/ca3de08b/attachment.html>