• 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: Why no -masm=intel with Darwin GCC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why no -masm=intel with Darwin GCC?


  • Subject: Re: Why no -masm=intel with Darwin GCC?
  • From: Terry Simons <email@hidden>
  • Date: Sun, 29 Jun 2008 21:46:41 -0600

I'm specifically trying to dump C files to assembly using GCC, so I was looking at the -masm flag for that, but it only dumps AT&T on Darwin, hence my question.

I'm open to any suggestions, honestly. Is there some way for me to convert C files using nasm, or would I have to compile my code into object form and disassemble it back into nasm format that way?

As I said, I'm a newbie here, so I'm really not sure what I want yet. :)

- Terry

On Jun 29, 2008, at 4:23 PM, Simon Connah wrote:

You could just use NASM if you wanted Intel style syntax. Personally I find NASM syntax much nicer than the syntax GAS uses.

I'm not really sure if that is what you are looking for though?

"I disapprove of what you say, but I'll defend to the death your right to say it." - Voltaire

On 29 Jun 2008, at 02:27, Terry Simons wrote:

Hi,

I'm curious why Mac OS X/Darwin omits the gcc -masm=intel functionality.

The gcc manpage says:

-masm=dialect
Output asm instructions using selected dialect. Supported choices are intel or att (the default one). Darwin does not support
intel.



Is there some sort of legality issue here? It seems like omitting this from the OS would have taken some amount of work, rather than simply leaving it a part of GCC.


I realize I'm simplifying and making assumptions here, I'm just trying to ask the question in simple terms so I can (hopefully) understood. :)

Are there any tools out there that people might recommend for converting from AT&T to Intel for purely readability purposes? (I find Intel easier than AT&T for beginners is all.)

I'm an assembly newbie... any help is appreciated.

Thanks!

- Terry
_______________________________________________
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


_______________________________________________ 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: Why no -masm=intel with Darwin GCC?
      • From: Paul Russell <email@hidden>
    • Re: Why no -masm=intel with Darwin GCC?
      • From: Chris Suter <email@hidden>
References: 
 >Why no -masm=intel with Darwin GCC? (From: Terry Simons <email@hidden>)
 >Re: Why no -masm=intel with Darwin GCC? (From: Simon Connah <email@hidden>)

  • Prev by Date: Re: How to build Universal Binaries through Open Source code
  • Next by Date: Re: Why no -masm=intel with Darwin GCC?
  • Previous by thread: Re: Why no -masm=intel with Darwin GCC?
  • Next by thread: Re: Why no -masm=intel with Darwin GCC?
  • Index(es):
    • Date
    • Thread