Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (8) </ 1 2 3 4 [5] 6 7 8 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Would it be time for DSL to shed its skin?, some ideas< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 19 2007,08:44 QUOTE

What? omitting frame pointers increases size? Weird, it's supposed to leave them out so size would be smaller..

I think we can have little bigger code for speed, unless it's bigger than with glibc originals of course..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 19 2007,09:23 QUOTE

I wondered about your results, so I did a test, built gzip:
flags:                                     binary size:
"-s -Os -fomit-frame-pointer"      45720
"-s -Os"                                   45880
"-s -Os -march=i486 -mtune=i686 -fomit-frame-pointer" 45720

so omitting frame pointers did decrease size, and optimizing didn't increase size......


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 20 2007,07:33 QUOTE

Another comparison:

unoptimized wide ncurses library was 333kb with glibc and 284kb with uClibc..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: July 20 2007,14:51 QUOTE

C compiler: gcc 4.2.0 (self-compiled)
C++ compiler: g++ 3.3.5 (Debian Sarge)
Size taken with `du -b file` after running `sstrip file`.
`sstrip` ("Maximal 'strip'ing utility.") can be found here (www.busybox.net).
Note:
Bold entries are C++ apps.
'-mcpu' is used for C++ apps because g++-3.3 doesn't understand '-mtune'.
Comments:
It seems like '-fomit-frame-pointer' hits C++ apps. C apps seem unaffected.
Could this be due to a difference in compiler versions (gcc-4.2-4.2.0 vs g++-3.3-3.3.5)? I will have to compile g++-4.2 first and then find out.

unzip 5.52
`make` ; `sstrip unzip` ; `du -b unzip`
'-Os' 90596
'-Os -fomit-frame-pointer' 90596
'-Os -march=i486 -mtune=i686' 90596
'-Os -march=i486 -mtune=i686 -fomit-frame-pointer' 90596

p7zip 4.49
`make 7za` ; `sstrip bin/7za` ; `du -b bin/7za`

'-Os' 845289
'-Os -fomit-frame-pointer' 1062377
'-Os -march=i486 -mcpu=i686' 845289
'-Os -march=i486 -mcpu=i686 -fomit-frame-pointer' 1062377

unrar 3.7.6
`make` ; `sstrip unrar` ; `du -b unrar`

'-Os' 154459
'-Os -fomit-frame-pointer' 187227
'-Os -march=i486 -mcpu=i686' 154459
'-Os -march=i486 -mcpu=i686 -fomit-frame-pointer' 187227
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 20 2007,17:07 QUOTE

That might be because of old g++, I don't seem to recall it raising sizes..

when can I have your root image to play with? X etc..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
37 replies since July 13 2007,18:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (8) </ 1 2 3 4 [5] 6 7 8 >/
reply to topic new topic new poll
Quick Reply: Would it be time for DSL to shed its skin?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code