I have an issue with 64 bit.
My application ( which is compiled on 10.4 & XCode 2.4.1 - universal
(ppc i386) build setting with 10.4 sdk ) works fine with 32bit
machine.
But it become slow on 64bit machine which is with 6 GB RAM.
What should be the problem ? Is problem is in code ? or I have to
compile it with 32-64 bit universal setting with 10.5 sdk ?
Also my application used some APIs which is removed in 10.5 sdk. like
quickdraw, some file manage API
Please help, it becomes severe issue form me.
p2
Hi, just a quick point here: if you are developing on Mac OS X 10.4,
you should probably be using Xcode 2.5 rather than 2.4.1. Xcode 2.5
was released in concert with Xcode 3 on 10.5 Leopard, so that a common
project type can be used, bug fixes, and any 64-bit incompatibilities
can be resolved (although 2.5 cannot compile 64-bit, its 32-bit
compilation should be compatible on a 64-bit machine).
Secondly, your use of deprecated API calls (like QuickDraw) are likely
to cause your code to become more creaky with time. Apple deprecated
QuickDraw many, many years ago, and at some point may get dropped
altogether and thus be un-compilable.
The Apple purist position now is to dump all that and move entirely to
Cocoa and Objective-C. However, if such a pill is too big to swallow
right away, you should at least be updating your Carbon API to use non-
deprecated calls (replacing QuickDraw with HIViews, etc.). Doing at
least that should improve your application's performance and
robustness.
Jonathan Hoyle
http://www.jonhoyle.com
Thaks for immediate reply,
I have one more query, if I compile the same code with xCode-3.1 on
10.5 machine,
Is it works ? Is this do same thing as xcode 2.5 ?
p2
And Do I have to follow the perticular step to use xcode 3.1 with 10.5
sdk ?
mean to convert project 2.4 to 3.1, is there any steps ?
Xcode 3.1 has a number of newer features not available in Xcode 2.5,
so that is certainly a plus. For example, you can compile in 64-bit
with Xcode 3 that you could not in Xcode 2.
Also, it depends on what your development machine is. Xcode 2.5 will
run on 10.4 and 10.5, but does not seem to be compatible with 10.6.
Xcode 3.1, on the other hand, will run on 10.5 and 10.6, but not in
10.4. However, applications can be build with either version of Xcode
to run on 10.4, 10.5 and 10.6.
The project file type is the same between Xcode 2.5, 3.0.x and 3.1.x.
By default, they each use gcc 4.0.1 as their underlying compiler. I
don't know if the project type was modified slightly between Xcode 2.4
and Xcode 2.5, so I don't wish to say.
I would start by moving from Xcode 2.4 to 2.5 and saving your project
in that. There should be little difference from a development
standpoint, and you should still be able to compile your application.
Once you have done that, then you can try opening your project in
Xcode 3.1 and see if it still compiles. It may be that it will not,
as Xcode 3 improves its stringency for proper coding behavior, and
will no longer hide certain errors that Xcode 2 let you squeak by
with.
Good Luck.