[cfe-dev] linking and stripping compared to GCC 4.4
Luc Bourhis
luc_j_bourhis at mac.com
Mon Nov 29 10:13:54 PST 2010
Thanks for your answer.
> Are there functions in the Clang-compiled demo.so that are significantly larger than their GCC-compiled counterparts?
Could you give me a few pointers as to how I would find those size? I would then be more than happy to do a thorough investigation.
> Also, for code size, -O2 or -Os are generally a better bet than -O3.
clang++ -Os and -O3 gives nearly the same size for the .o file here. The problem appears when clang++ links that .o to make the .so
It's is linking against a dylib Boost.Python library by the by. But I may be missing your point completely here.
Luc
More information about the cfe-dev
mailing list