• 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: optimizing cpp files in Objective C project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: optimizing cpp files in Objective C project


  • Subject: Re: optimizing cpp files in Objective C project
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 12 Nov 2007 13:34:41 -0800

On Nov 12, 2007, at 1:02 PM, Micah Sharp wrote:

We recently did some profiling of an Objective C project that included some cpp files against a regular C++ project with the same cpp files, and we came to the conclusion that all optimizations were being turned off for C++ files in the Objective C project case. Is this a known issue with XCode or could we be wrong? We had some wildly different performance numbers for two projects in the same code and changing the cpp files to a separately built static library eliminated most of the differences.

Hm. The OPTIMIZATION_FLAGS should apply both to C++ and Objective-C files. Could you paste the CompileC lines from the build transcript for the .m and the .cpp files?


The only way you can tell whether optimization is taking effect is inspection of the generated executable code. Very, very many things can affect performance other than optimization.

Chris
_______________________________________________
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: optimizing cpp files in Objective C project
      • From: "Micah Sharp" <email@hidden>
References: 
 >link stage ignoring my static lib! (From: Peter Mulholland <email@hidden>)
 >Re: link stage ignoring my static lib! (From: Wade Williams <email@hidden>)
 >optimizing cpp files in Objective C project (From: "Micah Sharp" <email@hidden>)

  • Prev by Date: Re[2]: link stage ignoring my static lib!
  • Next by Date: Re: Problems with class/data model editor in Xcode 3?
  • Previous by thread: optimizing cpp files in Objective C project
  • Next by thread: Re: optimizing cpp files in Objective C project
  • Index(es):
    • Date
    • Thread