gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small change in NSObject.m ASM needed for PowerPC build


From: David Chisnall
Subject: Re: Small change in NSObject.m ASM needed for PowerPC build
Date: Mon, 4 May 2009 21:03:43 +0100

On 4 May 2009, at 21:07, Fred Kiefer wrote:

And what if we are actually
on a i386? And what should we do when we are on a machine where gcc does not provide that new build in? Currently NSIncrementExtraRefCount works
slowly on such machines, but it works.

Actually, it doesn't. If we are on i386, the original inline asm is used. This uses instructions which are not present on 386 chips, and so will fail at runtime. This change just means that it now fails at link time instead, which is probably an improvement, although a small one.

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]