Skip navigation.
 
mlRe: Garbage Collection in 10.4
FROM : Bill Bumgarner
DATE : Tue Nov 06 18:22:18 2007

On Nov 6, 2007, at 9:04 AM, Hans van der Meer wrote:
> My question is sligthly different: If I switch over to 10.5 and opt 
> for garbage collection in my Cocoa programs, will these programs run 
> under 10.4? Or do I have to maintain 2 versions, one with gc for 
> 10.5 and one with manually managed memory for running on 10.4?
> (I need to keep a 10.4 system running)


As Shawn said, "No" -- No, you can't compile a dual mode chunk of code 
on Leopard and deploy it on Tiger, GC or non-GC.  When compiling dual 
mode code (or GC only code), the compiler generates references to 
symbols that do not exist on Tiger.

The real question, though, is why would you want to deploy with GC 
enabled on Leopard if you have to support non-GC on Tiger?  Why bother 
incurring the cost of maintaining, debugging, and optimizing your code 
for two different memory management models?

If you need to support Tiger, stick with non-GC.

b.bum

Related mailsAuthorDate
mlGarbage Collection in 10.4 Hans van der Meer Nov 6, 18:04
mlRe: Garbage Collection in 10.4 Shawn Erickson Nov 6, 18:12
mlRe: Garbage Collection in 10.4 Bill Bumgarner Nov 6, 18:22
mlRe: Garbage Collection in 10.4 Hans van der Meer Nov 6, 20:09