• 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: How to write multi-arch .asm file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write multi-arch .asm file?


  • Subject: Re: How to write multi-arch .asm file?
  • From: Jonas Maebe <email@hidden>
  • Date: Wed, 7 Mar 2007 13:58:47 +0100


On 7 mrt 2007, at 13:50, Alexander Klyuev wrote:

Does anyone know how to write multi-arch .asm file,
exactly how to distinguish ppc architecture from i386 one
from within .asm file?

Is there any macros to use with conditional directives?

#ifdef __ppc__ #endif

#ifdef __i386__
#endif

And then compile with "gcc -x assembler-with-cpp" (I forgot whether that's the default for .s or .S files, just try)


Jonas _______________________________________________ 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
References: 
 >How to write multi-arch .asm file? (From: "Alexander Klyuev" <email@hidden>)

  • Prev by Date: How to write multi-arch .asm file?
  • Next by Date: Re: [OT] Disk image creation
  • Previous by thread: How to write multi-arch .asm file?
  • Next by thread: Path to Images using Xcode java project
  • Index(es):
    • Date
    • Thread