[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz <slitaz@xxxxxxxxxxxxxxxxxxx>
- Subject: Code size reduction
- From: Alexander Medvedev <devl547@xxxxxxxxx>
- Date: Sat, 28 Apr 2012 13:29:44 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=XjoKDUxvYWQnd/6kPWU2H++b+oFBsVxlB5Uhm6CVUoQ=; b=i3RCKXL0HypZIxgqO1vcYN1l9j6qPurGZmA7x+nAaAzpALxFRWynuI2sepkGFKfmog iFlIgVl0uYEI2+3T807CvjaW6nobfIkTSzCCmZWUXrlmP3LbK5SkG92cCtlXkvMnYEPC hP3cSTpqPZ7s7V7SJhtulosWs1QShoDf/J3kKeedST9qvF9BFVimgXr3nX11Hq0CpKV4 H/jU7kvmPg45UH7uQA0hzIdEztByxkfQTmWw8QvVDpLCHf6tl5EkMTiX6z0WwwG49e3T YGHArAlYUaFQC98BkcLVJOSQkYxvtoww8lRt7wMmQ3zJPJcrBbFvVXcugJgrxEBPJTax kCJg==
Just some info regarding code sizes and GCC options
I used some specific gcc and ld options on my gentoo server installation (I use it cause it's a lot easier in terms of developer usage)
Additional CFLAGS: -fivopts -fomit-frame-pointer -ftree-loop-im -ffunction-sections -fdata-sections -fwhole-program -flto
Additional LDFLAGS: -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--gc-sections -flto"
Some size reduction numbers:
htop from 140Kb to 102Kb
7z from 436Kb to 286Kb
7za from 1178Kb to 960Kb
git from 1300Kb to 1038Kb
transmission (O_o) :
from
-rwxr-xr-x 1 root root 385596 Apr 26 12:00 transmission-cli
-rwxr-xr-x 1 root root 388172 Apr 26 12:00 transmission-create
-rwxr-xr-x 1 root root 391008 Apr 26 12:00 transmission-daemon
-rwxr-xr-x 1 root root 383696 Apr 26 12:00 transmission-edit
-rwxr-xr-x 1 root root 419784 Apr 26 12:00 transmission-remote
-rwxr-xr-x 1 root root 384084 Apr 26 12:00 transmission-show
to
-rwxr-xr-x 1 root root 330640 Apr 28 12:44 /usr/bin/transmission-cli
-rwxr-xr-x 1 root root 30940 Apr 28 12:44 /usr/bin/transmission-create
-rwxr-xr-x 1 root root 334772 Apr 28 12:44 /usr/bin/transmission-daemon
-rwxr-xr-x 1 root root 26992 Apr 28 12:44 /usr/bin/transmission-edit
-rwxr-xr-x 1 root root 73844 Apr 28 12:44 /usr/bin/transmission-remote
-rwxr-xr-x 1 root root 36244 Apr 28 12:44 /usr/bin/transmission-show
Actually, I dont think about using it in a system-scale (due to some regressions mainly in LTO), but we can test and use this flags with some packages.
With best regards, Alexander.