• 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: Sean McBride <email@hidden>
  • Date: Thu, 07 Apr 2011 14:38:14 -0400
  • Organization: Rogue Research Inc.

On Sat, 2 Apr 2011 20:34:36 +0400, Dimitri Schoolwerth said:

>>> As a side note: If you actually do have the 10.6 SDK I recommend you
>>> use that (maybe just remove the --with-macosx-sdk option to use the
>>> latest on the system?). wx takes run-time care of not using features
>>> that are not available on earlier systems.
>>
>> Cool, thanks.
>>
>> I was opting to build with the 10.5 SDK as I want to be able to use it
>> on 10.5 and above. Or could I still use the 10.6 SDK and just set
>> --with-macosx-version-min=10.5?
>
>Yes, wx tries to take care of that for you. --with-macosx-version-min
>determines the minimal system you want to support.

Though as discussed recently on this very list, sometimes you _must_ use
the 10.5 SDK even though you should be able to use a newer SDK with an
older deployment target.

But back to the original question, the OP could investigate enabling LTO:

<http://en.wikipedia.org/wiki/Link-time_optimization>

which may allow for better dead code stripping.  But you'll need a
recent compiler...

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

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>)
 >Re: Stripping out unused code from linked static library (From: Darrell Blake <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Dimitri Schoolwerth <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Darrell Blake <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Dimitri Schoolwerth <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Darrell Blake <email@hidden>)
 >Re: Stripping out unused code from linked static library (From: Dimitri Schoolwerth <email@hidden>)

  • Prev by Date: Re: xcode 4 documentation when offline
  • Next by Date: Re: xcode 4 documentation when offline
  • Previous by thread: Re: Stripping out unused code from linked static library
  • Next by thread: Xcode Iphone video streaming
  • Index(es):
    • Date
    • Thread