Re: -fobj-gc ('Supported'), Controlling which mode Xcode runs your app in
Re: -fobj-gc ('Supported'), Controlling which mode Xcode runs your app in
- Subject: Re: -fobj-gc ('Supported'), Controlling which mode Xcode runs your app in
- From: "E. Wing" <email@hidden>
- Date: Wed, 23 Jan 2008 10:47:41 -0800
> If the code is in a framework, then you can create a simple tool
> target that links against said framework and is configured to run in
> GC or non-GC, as desired.
>
> If it is an app or tool, you can use the OBJC_DISABLE_GC environment
> variable to force it off. But this raises the question of why you
> are writing a dual mode tool or app?
>
Thanks, that environmental variable is the type of thing I was after.
So I have several different unrelated projects which spawned this question.
First, I help provide some open source frameworks. So the reason for
dual mode is obvious. These frameworks often come with several dozen
example programs which also kind of serve as a limited test suite.
Duplicating several dozen targets though in the Xcode project doesn't
really appeal to me though as one of these projects is already a
monster. The environmental variable is a bit more appealing to me in
this case.
Second, I have been working on a new application in which I wanted to
use garbage collection. However, early on in some experiments I did, I
hit some really bad performance problems with garbage collection
enabled. (I think there is now a tech note about CoreGraphics and GC
which might be in the realm of where the source of my problems lie.)
Anyhow, I still haven't completely given up the ship on garbage
collection hoping I might figure out something that addresses my
specific cases. So I would like to be able to easily toggle between
the two for testing until I commit to a single course of action. When
I ship this, then I will most likely change the option to gc-only or
unsupported.
Thanks,
Eric
_______________________________________________
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