[futurebasic] Re: [FB] Intel vs. PPC?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Mon, 28 Jan 2008 17:04:35 -0700
On Jan 28, 2008, at 6:54 AM, John McKernon wrote:

> Does anyone know if there is any way to determine in code whether  
> or not an
> FB app is running under Rosetta on an Intel processor?

John,

1) Given an FB app built with the FB compiler and not FBtoC, it has  
to be a PowerPC executable.

2) A PowerPC executable will run native on a PowerPC machine and  
under Rosetta on an Intel machine.

3) Given #1 is true, the only thing remaining to find out is if the  
program is running on an Intel or PowerPC machine. Alain's Gestalt  
calls look reasonable for this discovery.

If the FB app is universal (i.e. created by FBtoC) it will obviously  
never run in Rosetta.


Brian S.