• 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: Detect Intel System?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect Intel System?


  • Subject: Re: Detect Intel System?
  • From: Peter Speck <email@hidden>
  • Date: Fri, 6 Aug 2010 17:07:08 +0200

On 06/08/2010, at 16:49, François Revol wrote:

> Alternatively it might be possible to parse the output of file on /bin/sh, here it gives:
>
> $ file /bin/sh
> /bin/sh: Mach-O universal binary with 2 architectures
> /bin/sh (for architecture x86_64):	Mach-O 64-bit executable x86_64
> /bin/sh (for architecture i386):	Mach-O executable i386

That only tells what's installed, but not which binaries the platform is able to execute.  Lack of ppc here is probably due to the OS being 10.6

10.5 has the simple "arch" command which can only tell which platform it is.  10.6 (which doesn't support ppc) is able to execute a binary using a specific arch, e.g. "arch -i386 /usr/bin/true"

----
   - Peter Speck


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Detect Intel System? (From: Duane Murphy <email@hidden>)
 >Re: Detect Intel System? (From: Stephane Sudre <email@hidden>)
 >Re: Detect Intel System? (From: Shantonu Sen <email@hidden>)
 >Re: Detect Intel System? (From: Peter Speck <email@hidden>)
 >Re: Detect Intel System? (From: François Revol <email@hidden>)

  • Prev by Date: Re: Detect Intel System?
  • Next by Date: Re: Detect Intel System?
  • Previous by thread: Re: Detect Intel System?
  • Next by thread: Re: Detect Intel System?
  • Index(es):
    • Date
    • Thread