From owner-freebsd-hackers Mon Sep 14 13:19:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA08530 for freebsd-hackers-outgoing; Mon, 14 Sep 1998 13:19:52 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from du248-16.cc.iastate.edu (du248-16.cc.iastate.edu [129.186.248.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA08515 for ; Mon, 14 Sep 1998 13:19:41 -0700 (PDT) (envelope-from graphix@iastate.edu) Received: from localhost (graphix@localhost) by du248-16.cc.iastate.edu (8.8.5/8.8.5) with SMTP id PAA21067; Mon, 14 Sep 1998 15:17:47 -0500 (CDT) Message-Id: <199809142017.PAA21067@du248-16.cc.iastate.edu> To: Mike Smith Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Unused functions In-reply-to: Your message of "Mon, 14 Sep 1998 11:19:48 PDT." <199809141819.LAA00296@dingo.cdrom.com> Date: Mon, 14 Sep 1998 15:17:45 CDT From: Kent Vander Velden Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199809141819.LAA00296@dingo.cdrom.com>, Mike Smith writes: >> > It allows the programmer and the C scoping rules to >> > work together to determine what should be associated and what need not. >> >> Instead of the compiler merely calculating hamiltonian cycles in >> the dependency graph to do dead code elimination. > >And if I happen to *want* all of the items in a given object (eg. I am >using a scripting language that supports primitive lookup via the >symbol table, or any other form of lazy runtime linking)? > >The current rules give the best of both worlds. Don't fix what isn't >really broken. Is there any tool that can, as a post process following linking, remove any unused code? Strip just removes the debug symbols correct? Perhaps SuperStrip! This would seem to be a nice feature since it could be run by a person that is aware of the problems it may cause and has done the work to be certain no harm will happen. --- Kent Vander Velden kent@iastate.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message