• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting CPU type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting CPU type


  • Subject: Re: Detecting CPU type
  • From: Rosyna <email@hidden>
  • Date: Fri, 16 Sep 2005 08:27:24 -0700

Everything lies! (under Rosetta).

You have to "call out" in order to find the info.

Or you can check the result of getenv("GL_RESOURCES"); Or you can see if a specific file is opened by your application but these two methods are bound to change.

Really wish there was a gestalt for the lies.

Ack, at 9/16/05, Heinrich Giesen said:

I would like to find out CPU Type (PPC or x86),

At runtime you can use a UNIX function:

#include <mach-o/arch.h>
    NXArchInfo *info = NXGetLocalArchInfo();
    printf( "name = %s\n", info->name );
    printf( "description = %s\n", info->description );
    . . . .

see UnixManual for arch in chapter 3:
/usr/share/man/man3/arch.3

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting CPU type
      • From: John Stiles <email@hidden>
References: 
 >Re: Detecting CPU type (From: Heinrich Giesen <email@hidden>)

  • Prev by Date: Re: Adding menus to main menu
  • Next by Date: Re: Detecting CPU type
  • Previous by thread: Re: Detecting CPU type
  • Next by thread: Re: Detecting CPU type
  • Index(es):
    • Date
    • Thread