From: Frank Kotler <fbkotler@comcast.net>
To: sabancia@itu.edu.tr
Cc: linux-assembly@vger.kernel.org
Subject: Re:
Date: Mon, 31 Oct 2005 20:33:02 -0500 [thread overview]
Message-ID: <4366C5CE.8080709@comcast.net> (raw)
In-Reply-To: <20051101025814.f5vl0yjbflnkkcso@webmail.itu.edu.tr>
sabancia@itu.edu.tr wrote:
> Hi everyone,
> I am a computer engineering student in Turkey. I came across your web site while
> I was searching how to generate Intel 80x86 assembly code of a C file by using
> gcc. I compiled my C code (a5.c) like this:
> gcc -S a5.c -o a5.s
> but the a5.s output file contains the assembly code in AT&T syntax.
>
> I wanted to learn what I should do to get the code generated in Intel 80x86
> syntax, if it's possible.
Adding "-masm=intel" will (may) get you closer. I can't figure out how
to get it to do the "noprefix" part of ".intel_syntax noprefix", so I
still get the "%"s. You might be better off to let gcc generate at&t
syntax and convert to Intel with "intel2gas" (which works either way) or
"a2i". You might still have to do some "hand editing".
Best,
Frank
next prev parent reply other threads:[~2005-11-01 1:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-01 0:58 (unknown), sabancia
2005-11-01 1:33 ` Frank Kotler [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-18 5:26 (unknown) n mishra
2003-01-21 6:16 ` hp
2002-09-30 15:00 (unknown) Joshua Hudson
2002-10-06 20:13 ` use
2002-10-07 8:53 ` Re: Rick A. Hohensee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4366C5CE.8080709@comcast.net \
--to=fbkotler@comcast.net \
--cc=linux-assembly@vger.kernel.org \
--cc=sabancia@itu.edu.tr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).