[cfe-dev] Clang generated binary sizes

Daniel Dunbar daniel at zuster.org
Wed Jun 16 10:10:42 PDT 2010


I would start by comparing the sizes of individual .o files. If you
can find one that differs noticeably from GCC, that might give a clue.
It would also be interesting to know what the -O2 numbers are.

 - Daniel

On Tue, Jun 15, 2010 at 8:51 PM, Clark Gaebel <cg.wowus.cg at gmail.com> wrote:
> When I use gcc to compile a C++ project I'm currently working on, the
> final executable size is 4MB.
> When I use clang++ to compile the exact same code, the final executable
> size is 7MB.
>
> The optimization flags used are -O3 -funroll-loops and -funswitch-loops.
>
> How can I go about diagnosing this bloat?
>
> --
> Regards,
> -Clark
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list