• 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: Stripping out unused code from linked static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping out unused code from linked static library


  • Subject: Re: Stripping out unused code from linked static library
  • From: Darrell Blake <email@hidden>
  • Date: Sat, 02 Apr 2011 14:21:27 +0100

> The linker will by default only link in object files from the static library that contain symbols referenced by the application.
> If you want the selection to happen at symbol rather than at object level granularity, enable dead code stripping in Xcode.
> This corresponds to the gcc option -Wl,-dead_strip (= linker option -dead_strip). It's probably already enabled by default in
> Xcode though.

Cool, thanks. Just enabled the -dead_strip option and it's now down to
30mb. I'm probably not going to get it much smaller than that, am I?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Stripping out unused code from linked static library
      • From: Dimitri Schoolwerth <email@hidden>
References: 
 >Stripping out unused code from linked static library (From: Darrell Blake <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Re: Stripping out unused code from linked static library
  • Next by Date: Re: Stripping out unused code from linked static library
  • Previous by thread: Re: Stripping out unused code from linked static library
  • Next by thread: Re: Stripping out unused code from linked static library
  • Index(es):
    • Date
    • Thread