• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dead-code stripping, is it possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dead-code stripping, is it possible?


  • Subject: Re: dead-code stripping, is it possible?
  • From: Daniel Jogvan Nielsen <email@hidden>
  • Date: Wed, 2 Jun 2004 19:54:30 +0200

On Jun 2, 2004, at 19:04, Ken Turkowski wrote:


[snip]


Why the step backwards? All of the Macintosh linkers prior to OS X stripped dead code on a function basis, not a module basis. It's not like this is breaking new ground in compiler technology.


Reading this thread, I'm still not convinced that strip doesn't do what you want. See man strip from the terminal


from the man pages:

When an executable is built with all its dependent dynamic shared
libraries, it is typically stripped with:
% strip -u -r executable
which saves all undefined symbols (usually defined in the dynamic
shared libraries) and all global symbols defined in the executable ref-
erenced by the dynamic libraries (as marked by the static link editor
when the executable was built). This is the maximum level of striping
for an executable that will still allow the program to run correctly
with its libraries.


As I understand "symbols" then it means functions, objects and more, and not just "modules"

Please correct me if I'm wrong.

/Daniel
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: dead-code stripping, is it possible?
      • From: Ken Turkowski <email@hidden>
    • Re: dead-code stripping, is it possible?
      • From: Chris Ridd <email@hidden>
References: 
 >Re: dead-code stripping, is it possible? (From: Ken Turkowski <email@hidden>)

  • Prev by Date: Re: Multiple "Arguments" entries
  • Next by Date: External CVS
  • Previous by thread: Re: dead-code stripping, is it possible?
  • Next by thread: Re: dead-code stripping, is it possible?
  • Index(es):
    • Date
    • Thread