I thought it was the other way around (might be wrong) but I thought PPC and the 68000 series from motorola were LittleEndian and Intel (and compatibles) were big endians.

----- Original Message ----- From: "Joseph J. Strout" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Monday, February 20, 2006 5:48 PM
Subject: Re: Detecting Intel or PPC


At 5:41 PM -0500 2/20/06, Thom McGrath wrote:

Is there a declare or a fool-proof method to detecting if the application is running on an Intel or PPC chip? I'm aware that REALbasic [still] cannot support UB, but I'm preparing for the day.

I'd think you could just make a MemoryBlock and check its .LittleEndian property. That should be true if running (natively) on an Intel chip, and false if running on a PPC chip.

HTH,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>

Reply via email to