This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Os effect on MIPS and PowerPC
- From: Andrew Haley <aph at redhat dot com>
- To: Sergei Poselenov <sposelenov at emcraft dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 02 Aug 2008 09:45:51 +0100
- Subject: Re: -Os effect on MIPS and PowerPC
- References: <48933D04.1040700@emcraft.com>
Sergei Poselenov wrote:
> Hello,
>
> A naive question. For the same toolchain (gcc-3.2, binutils-2.11.94,
> glibc-2.3.1) I've got the following binary sizes (busybox, built
> with -Os):
>
> MIPS:
> bash# size busybox
> text data bss dec hex filename
> 165080 5564 10168 180812 2c24c busybox
> bash# ls -l busybox
> -rwxr-xr-x 1 psl psl 185160 Aug 1 19:53 busybox
>
> PowerPC:
> bash# size busybox
> text data bss dec hex filename
> 127101 1024 12204 140329 22429 busybox
> bash# ls -l busybox
> -rwxr-xr-x 1 psl psl 131412 Aug 1 19:52 busybox
>
> I know, the toolchain is pretty old, but nevertheless,
> could someone explain why such difference in sizes?
> Is it MIPS specifics, or just lack of popularity and
> thus development?
I don't believe it's the same program. Look at why the data sizes
are different: you'll need the linker map.
Andrew.