I suppose you could go after ascertaining the actual chip. But since
there's a different version of OSX released for Intel vs PPC, I
wonder if it wouldn't be better to determine whether your app was
running on "OSX for Intel" vs "OSX for PPC".
The Intel chip test would be true for Windows, and of course it
doesn't support Universal Binaries. (False positive)
And maybe someday "OSX for Intel" will run on AMD chips, and so a
true test for an Intel microprosessor would also give you the wrong
answer to whether your Universal binary would run. (False negative)
So it would seem the most relevant question to ascertain the need for
a UB is whether the os is "OSX for Intel".
Regards,
Joe Huber
Preferably both. For example, if running a PPC binary on Intel and a
new version becomes available online I can display a customized
alert that this new version is a UB. If they are running a PPC
binary on PPC, why do they care.
Please, this is purely speculative at the time. Personally, I don't
believe the above is a great use, but I'm looking for a reliable
method.
--
Thom McGrath
The ZAZ Studios
<http://www.thezaz.com/> AIM: thezazstudios
On Feb 20, 2006, at 6:16 PM, Joe Huber wrote:
That would only tell you for which platform the particular binary
you're running was compiled. It would not tell which particular
microprocessor chip you were running on at runtime.
In particular, it would give you the wrong answer for a PPC binary
running on an Intel chip via Rosetta.
But I do wonder if Thom really wants to know the Chip, or the
platform of the compiled binary?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>