Re: Code bloating

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



denis campredon <denis.campredon@xxxxxxxxx> writes:

> I have a question about reduccing test :
>
>
> - I found a program on the net, and tried to built it. But I find
> something wrong in one file :
> Âwhen I built it with g++ -g -O0 the binary is about 1,2M.
> Âwhen I built it with g++ -g -Os the binary is about 33M. about 25M
> for O1 O2, O3
> Âwhen I built it with clang++, the size is always about 1,4M
> Âwithout debug option, the file has about the same size with any
> optimization flags
>
> I tried to remove a few small functions, or pieces of code, but most
> of the time, the code size moves for +/- 1 to 4M.
>
> I don't know how do reduce the case, because the result is
> unpredictable, and it takes 20s to compile with 01, the fastest.

What do you care about?

Your subject line says "Code bloating", but debug info is not code.  The
size without the -g option is the size that matters.  Using the -g
option adds debug info, but that is not code bloat.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux