After doing some digging while everybody discussed what I wanted (:P
don't take offense, just poking fun) I was able to find something on
ADC. This seems like the most reliable method, but I see no
documentation on Intel so I'm swinging in the dark as I have a PPC.
dim res as integer
if system.gestalt("sysa",res) then
if res = 2 then
// PowerPC
else
// Intel
end
end
I'm also aware that this would report an 68k chip as an Intel. Since
I don't know the Intel code (3 maybe?) and RB doesn't support 68k
anymore, this seems like a moot point.
Still looking for the right constant though.
--
Thom McGrath
The ZAZ Studios
<http://www.thezaz.com/> AIM: thezazstudios
On Feb 20, 2006, at 6:48 PM, Joe Huber wrote:
I can think of reasons to need to know what endianness your code
is running under, but so far haven't thought of any reason to care
if your BigEndian code is actually running under Rosetta on an
Intel chip.
I agree, and wondered the same thing. But Thom was specifically
asking for chip not compiled platform info.
And in a later posting he explains that he wants to know, from his
PPC app, whether the runtime system could take advantage of the
Intel code in a Universal Binary. So it turns out he was more
interested in the chip, than the platform info. The Targetxyz
constants would not give him that info.
_______________________________________________
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>