[llvm-dev] Tip: How to use less RAM linking LLVM
David Blaikie via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 21 09:18:28 PDT 2018
On Thu, Sep 20, 2018 at 11:22 AM Tim Northover via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> On Thu, 20 Sep 2018 at 10:53, via llvm-dev <llvm-dev at lists.llvm.org>
> wrote:
> > I hope this helps someone. If you have any additional tips, comments or
> gotchas with this approach, please add them.
>
> LLVM_USE_SPLIT_DWARF=ON also greatly improves the situation by (I
> think) skipping linking the debug info entirely.
Pretty much
> The disadvantage is
> that lldb still doesn't quite work on the result (gdb does) and
> loading things into gdb takes longer (I think).
>
The increased loading time in GDB can be avoided by enabling gdb-index
(pass -ggnu-pubnames to the compiles, and -Wl,-gdb-index to the link step)
so the debugger doesn't have to parse all the DWARF to start.
- Dave
>
> Cheers.
>
> Tim.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180921/e83ed7b7/attachment.html>
More information about the llvm-dev
mailing list