[cfe-dev] Clang generated binary sizes

Clark Gaebel cg.wowus.cg at gmail.com
Tue Jun 15 20:51:26 PDT 2010


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




More information about the cfe-dev mailing list