Re: optimizing cpp files in Objective C project
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