Fwd: Code optimisation always -0s [again :)]
Fwd: Code optimisation always -0s [again :)]
- Subject: Fwd: Code optimisation always -0s [again :)]
- From: Dominik Pich <email@hidden>
- Date: Tue, 2 Nov 2004 18:10:58 +0100
Didn't know the difference and it is nowhere doc'd styles only work with natives.
Begin forwarded message:
From: Eric Albert <email@hidden>
Date: November 1, 2004 6:28:54 PM CET
To: Dominik Pich <email@hidden>
Subject: Re: Code optimisation always -0s [again :)]
I guess the Xcode team hasn't done as good of a job communicating the difference between jambase and native targets as I'd hoped. :)
Project Builder -- Apple's old IDE -- used jam as its build system. Jam is roughly analogous to 'make' in how it works. Unfortunately, that didn't give the IDE nearly as much control over the build as Apple wanted. With Xcode 1.0, then, Apple introduced a new type of target that's "native" to the IDE -- in other words, it's tightly integrated with the IDE. Old target types are called "jambase" targets; the new ones are "native". A number of Xcode features only work or only work well with native targets. There's really no reason to use jambase targets unless you're using Java (which doesn't support native targets yet) or you need to maintain a semblance of compatibility with Project Builder.
Your project is using jambase targets. You can tell this by toggling the triangle next to Targets under Groups & Files and double-clicking on either of the targets. The window that appears is all gray with a column on the left, which looks different from what you get when you select the top item in the Groups & File pane (the one with a project icon) and press command-I. If they looked similar, you'd know you had native targets.
To upgrade your project to native targets, simply go to the Project menu and select Upgrade All Targets in Project to Native. That'll create copies of your existing targets with " (Upgraded)" after the name. Delete the originals, rebuild, and see if the optimization settings now work. If they don't, let me know.
Hope this helps,
Eric
On Nov 1, 2004, at 9:14 AM, Dominik Pich wrote:
? I did a add > target > Generic Application Bundle
What else should I do?
Thanks
Dominik
Hmm...why aren't you using native targets? Unless there's some obscure reason why they won't work for you, you should be using them. You'll find that many Xcode features work much better when you do. In particular, I'm very confident that the optimization settings will work correctly for you then.
I am using Xcode 1.5 and haven't upgraded the project but have freshly created a new project.
It has two styles: Development AND Deployment
and two targets: client AND server
the targets set the optimisation flag to -Os per default
the development style sets the optimisation flag to -O0 per default
the deployemnt style sets the optimisation flag to -Os per default
I DID NOT CHANGE THAT
=> build with gcc of either target with the Development style activated
flag is -Os and NOT -O0 specified by the style.
--
Eric Albert email@hidden
http://outofcheese.org/
May you always find water and shade. - Wheel Of Time
Dominik
_______________________________________________
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