Date: Sun, 13 Sep 1998 16:59:50 -0400 (EDT) From: Chuck Robey <chuckr@mat.net> To: Kent A Vander Velden <graphix@iastate.edu> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unused functions Message-ID: <Pine.BSF.4.02A.9809131656500.343-100000@picnic.mat.net> In-Reply-To: <199809132056.PAA01179@isua3.iastate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 13 Sep 1998, Kent A Vander Velden wrote: > > Is the code associated with unused functions of a used archive ever removed > from the executable that uses the archive? After linking I see with 'nm' > there are many functions in the executable that are never called. This is > making my executable rather large since the archive is huge. Would elf > help in anyway with this? Do you realize that many of the libc functions need each other as dependencies? Many functions just don't work alone. At least for shared executeables, they don't exist in your executeable until you actually execute it, anyways, so they don't bloat your executeable at all. They get linked in during the startup task of locating and loading the executeable into memory, before it really starts to work. ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9809131656500.343-100000>