If this is the case, Too bad. <br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 10:18 PM, Domagoj Saric <span dir="ltr"><<a href="mailto:domagoj.saric@littleendian.com" target="_blank">domagoj.saric@littleendian.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 23.9.2012. 16:21, Devchandra L Meetei wrote:<br>
> Hi clangers<br>
> is there any best practices which can be used to to reduce disk footprints of<br>
> executable and lib generated by clangs,<br>
> Usually binaries generated by clang is larger than those of gcc.<br>
<br>
<br></div></div>
I can confirm that Clang's record WRT codegen size is quite far from good. The main problems I've identified are:<br>
- excessive inlining (even with -Os)<br>
- template bloat<br>
- no support for fno-inline, -fno-inline-functions or -finline-limit<br>
<br>
Here are some related tickets by me (you can find some tips how to "minimize damage"):<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=11625" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=11625</a><br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=11633" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=11633</a><br>
<br>
By others:<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=4435" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=4435</a><br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=4573" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=4573</a><br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=5124" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=5124</a><br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=11083" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=11083</a><br>
<br>
These don't help either:<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=11544" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=11544</a><br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=11624" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=11624</a><br>
<br>
<br>
...from the date of the tickets and lack of response one can only deduce that this is of no or very low priority to Clang developers (or in "bitch mode": they only care about synthetic benchmarks and not about real world behaviour)... :/<span class="HOEnZb"><font color="#888888"><br>

<br>
<br>
-- <br>
"What Huxley teaches is that in the age of advanced technology, spiritual<br>
devastation is more likely to come from an enemy with a smiling face than<br>
from one whose countenance exudes suspicion and hate."<br>
Neil Postman<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br>