• 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: Curiosity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Curiosity


  • Subject: Re: Curiosity
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 21 Dec 2005 14:40:51 -0800


On Dec 21, 2005, at 2:28 PM, <email@hidden> <email@hidden> wrote:



Ok... The other day I was testing a theory. I am on a G5 right now, but
using the newest XCode. I set it up to build for intel and not ppc. I
then built a bsd commandline tool.


main()
{
      print("Test successful");
}

When compiled it runs perfectly on my G5. Odd since it was compiled for
intel.

Try running lipo on the resulting tool. I bet it has PPC in it. For example...


QuadG5:~ shawnce$ lipo -info /bin/cp
Non-fat file: /bin/cp is architecture: ppc

The theory though was that a clu independant of the api's for
linux/windows/mac etc. would run on Redhat or other similar oses. but in
RH i get the unable to execute binary.

You built an MACH-O formatted binary which Linux doesn't know how to parse (at least not out of the box).


So why, if I compile for intel
does it work on the ppc machine and not the intel box. or at least
attempt to run on the intel box?

I doubt it was a pure intel binary if it ran on your PowerPC system.

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


  • Follow-Ups:
    • Re: Curiosity
      • From: <email@hidden>
References: 
 >Curiosity (From: <email@hidden>)

  • Prev by Date: Curiosity
  • Next by Date: Re: Curiosity
  • Previous by thread: Curiosity
  • Next by thread: Re: Curiosity
  • Index(es):
    • Date
    • Thread