Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Dec 2007 10:49:56 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        obrien@freebsd.org
Cc:        Boris Samorodov <bsam@ipt.ru>, Jan Lentfer <Jan.Lentfer@web.de>, freebsd-current@freebsd.org
Subject:   Re: Problems Building 7.0-Beta3 with -Os
Message-ID:  <20071207104956.g7wj6vtxwo4cwg0w@webmail.leidinger.net>
In-Reply-To: <20071206163408.GA37676@dragon.NUXI.org>
References:  <4756BAD3.4060905@web.de> <95938867@bb.ipt.ru> <20071205231628.GA15765@dragon.NUXI.org> <20071206072239.GA81748@team.vega.ru> <20071206084342.cv8xbmqg4k0co8kg@webmail.leidinger.net> <20071206163408.GA37676@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting David O'Brien <obrien@freebsd.org> (from Thu, 6 Dec 2007 =20
08:34:08 -0800):

> On Thu, Dec 06, 2007 at 08:43:42AM +0100, Alexander Leidinger wrote:
>> And after the import of the new gcc in 7, a lot of people noticed, that
>> the resulting binaries are larger with -Os than with -O2.
>
>     quynh:/usr/src/usr.bin/vi> uname -m
>     amd64
>     quynh:/usr/src/usr.bin/vi> /bin/ls -l nvi.-O*
>     -rwxr-xr-x  1 root  ncvs  366894 Dec  6 08:21 nvi.-O2
>     -rwxr-xr-x  1 root  ncvs  313043 Dec  6 08:21 nvi.-Os
>     quynh:/usr/src/usr.bin/vi> size nvi.-O*
>        text    data     bss     dec     hex filename
>      326132    1944    4392  332468   512b4 nvi.-O2
>      273759    1944    4392  280095   4461f nvi.-Os
>
> Perhaps you mean *sometimes* larger.

AFAIR it makes the kernel in /boot/ much larger.

> Also -Os goal is run-time foot print, not disk foot print.

Could you please be a little bit more verbose? If we let alone =20
debugging stuff which can be stripped out: how can you get a smaller =20
size at run-time compared to the size on disk? If the binary size of a =20
program on disk (without debugging stuff) is much larger, how can it =20
be smaller at run-time in the end?

Bye,
Alexander.

--=20
The difference between a good haircut and a bad one is seven days.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID =3D 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071207104956.g7wj6vtxwo4cwg0w>