Re: Why no -masm=intel with Darwin GCC?
Re: Why no -masm=intel with Darwin GCC?
- Subject: Re: Why no -masm=intel with Darwin GCC?
- From: Paul Russell <email@hidden>
- Date: Mon, 30 Jun 2008 08:13:44 +0100
You could use the Intel ICC compiler instead of gcc - that will dump
assembler output in Intel format.
Paul
On 30 Jun 2008, at 04:46, Terry Simons wrote:
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