Garbage Collection in 10.4

  • I saw in the archives a question on Garbage Collection on 10.5 but
    that fell in the NDA period.

    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)

    Hans van der Meer
  • On 11/6/07, Hans van der Meer <hansm...> wrote:
    > I saw in the archives a question on Garbage Collection on 10.5 but
    > that fell in the NDA period.
    >
    > 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?

    No GC using applications will not run on 10.4 systems. GC requires
    support from system provided frameworks (let alone the objc runtime)
    and that support only exists on Leopard (10.5).

    -Shawn
  • 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
  • Thanks for the quick answer. Seems I really have to choose between
    the one and the other.

    Hans van der Meer

    On Nov 6, 2007, at 18:12, Shawn Erickson wrote:

    > No GC using applications will not run on 10.4 systems. GC requires
    > support from system provided frameworks (let alone the objc runtime)
    > and that support only exists on Leopard (10.5).
    >
    > -Shawn

    On Nov 6, 2007, at 18:22, Bill Bumgarner wrote:

    > 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
    >
    >
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today