Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 01:49
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Static Linking Considered Harmful
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 03 Mar 2012, 11:48    Post subject:  

Gparted is a good example the lib*mm.so libs are essentially garbage. Barry even compiles them statically (though he skips the compiler flags needed for removing most of the unneeded sections). As an excercise, try compiling gparted with all shared libs, then with static libs from the devx. Compare the size differences.
Then if you want to see what difference cflags make, rebuild all the mm libs with -ffunction-sections -fdata-sections and -Wl,--gc-sections
(there are more, but these make the most difference)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 430
Location: State of Jefferson

PostPosted: Thu 05 Apr 2012, 19:52    Post subject: Speaking of Sabotage...  

I've played with Sabotage Linux a little because it uses a libc (musl libc, http://www.etalabs.net/musl/) that matches what I want:
-Standard ABI (fairly constant except for major bugs, aims at LSB ABI compatability so eventually it will work with glibc binaries)
-Small source, quick to build (maybe two-minute build time on an atom at -j1; uses hand-edited config.mak instead of ./configure shell script; 7.2 MB for the latest version of the source + 700 KB includes )
-Standards-conformant source interface (mostly conforms to X/Open. ISO C99, POSIX; treats nonconformance as a bug that must be fixed instead of "wontfix")
-Fully supports static compilation; designed so every function gets its own file for minimum link overhead, no extra shared libs that get dragged in behind your back,
-Small binaries (1.5 mb libc.a includes everything, when glibc takes 3 mb just for libc.a and then has all the other stuff; 550 kb libc.so vs 1.3 mb; and a static or shared binary will be smaller than when linked with glibc)
-Designed for low RAM use--the author wrote it because his computer couldn't run libc6 and libc5 was inadequate.

The standards-conformance attitude is an advantage over every other libc, ABI beats uclibc/klibc, size beats glibc.
I've pondered making a Puppy based on it, but don't know that much; but it sure would be nice for that purpose...
I'm currently working (slowly) on "Muslin", a musl-based Linux distro. The long-term aim is to have something light, fast, and X/Open (SUSv4/UNIX2008) conformant.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Fri 01 Feb 2013, 08:57    Post subject:  

You guys don't have anything to do with "Starch Linux", do you? It is supposed to be all statically linked, with musl.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 430
Location: State of Jefferson

PostPosted: Sat 02 Feb 2013, 12:36    Post subject:  

disciple wrote:
You guys don't have anything to do with "Starch Linux", do you? It is supposed to be all statically linked, with musl.


Not really, but some of the developers post on the musl mailing list about mostly-unrelated topics.

From what I've seen, it's currently not a bootstrapping environment. It really got started 2 months ago, and is a side/hobby project (ie, slow development).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0484s ][ Queries: 12 (0.0042s) ][ GZIP on ]