[cfe-dev] Better support for statically linking libc++/libc++abi
Joerg Sonnenberger via cfe-dev
cfe-dev at lists.llvm.org
Fri Oct 16 03:46:07 PDT 2015
On Thu, Oct 15, 2015 at 09:16:22PM -0700, Nico Weber via cfe-dev wrote:
> 3. It'd be cool if there was some supported way to build libc++abi in a way
> that makes it not add a dependency on cxa_demangle() from
> default_terminate_handler() in cxa_default_handlers.cpp. This one call
> keeps cxa_demangle() alive, and that takes several hundreds kB of code. For
> apps sensitive to size (e.g. mobile apps), paying this size cost for almost
> no benefit seems suboptimal. (We're currently adding an empty
> cxa_demangle() to one of our source files so that the linker picks that
> over the one in libc++abi, but that's fairly hacky.)
The demangler is supposed to be part of the ABI library independently.
It should be rewritten, compare the code for the demangle implementation
in libc++rt. Howard became a victim of requests for early
overgeneralisation :(
Joerg
More information about the cfe-dev
mailing list