This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21314] C++ size and performance regression with -Os
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2005 08:09:59 -0000
- Subject: [Bug target/21314] C++ size and performance regression with -Os
- References: <20050501083031.21314.deemkay@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2005-05-12 08:09 -------
(In reply to comment #6)
> hmm. code size is actually bigger with -Os.
>
> -rwxr-xr-x 1 dirtyepic users 15689 May 1 12:02 pr21314-O0
> -rwxr-xr-x 1 dirtyepic users 8333 May 1 12:02 pr21314-O1
> -rwxr-xr-x 1 dirtyepic users 8405 May 1 11:35 pr21314-O2
> -rwxr-xr-x 1 dirtyepic users 8157 May 1 12:03 pr21314-O3
> -rwxr-xr-x 1 dirtyepic users 12989 May 1 11:35 pr21314-Os
Don't look at the sizes shown by 'ls -l' look at the text size (as shown by
size -f)
You can also use 'nm' to see the size of the main function (all the interesting
code is in there, right?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21314