+sam<br><br><div class="gmail_quote">On Fri Jun 07 2013 at 7:29:51 PM Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Jun 7, 2013 at 1:20 PM, Manish Verma <<a href="mailto:Manish.Verma@arm.com" target="_blank">Manish.Verma@arm.com</a>> wrote:<br>
> Hi Aaron,<br>
><br>
> I checked that on Linux the size of ASTMatchers/Dynamic/<u></u>CMakeFiles/<u></u>clangDynamicASTMatchers.dir/<u></u>Registry.cpp.o<br>
> is 34M and number of sections generated is 36986.<br>
><br>
> Both, MSVC and mingw-gcc fails to build this file on Windows. I think<br>
> we should either fix the source in Registry.cpp or add /bigobj option<br>
> to build (the debug variant of) LLVM on Windows.<br>
<br>
I think we should investigate what "fixing" the file would be.<br>
Looking at Registry.cpp, it doesn't seem overly reasonable that we add<br>
37000 sections to the object file.  I have to imagine this has some<br>
effect on link time as well...<br>
<br>
Nothing obviously jumps out at me as to what is causing those sections<br>
to be generated.  Are we even sure the sections are desired?  I'll<br>
admit that I don't know...<br></blockquote><div><br></div><div>This is basically a parser generator written in template metaprogramming, so it's definitely expected for this to be somewhat large.</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks!<br>
<br>
~Aaron<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>