All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin <asmfreshmeat@gmx.de>
To: linux-assembly@vger.kernel.org
Subject: GAS/GCC Assembler Code Modification
Date: Sat, 15 May 2004 11:28:07 +0200	[thread overview]
Message-ID: <20040515112807.579e4d89@deepblack> (raw)

Hi folks,

I have a question regarding GAS and GCC. 
Does the GAS modify the Assembler Code? If I try to assemble (for example) the following line:

popl %esi 

the gas changes that to

pop %esi 

Ok I guess this is ok, because the ESI Register is 'only' 32 Bit. So movw (= mov) would be ok. 

Next example:

If I try to assemble

movl $0xb,%eax 

the gas changes that to

mov $0xb,%eax

How can I tell gas that I dont want him to optimize the code?

Best regards,
Martin

PS: Sry for my poor english.


             reply	other threads:[~2004-05-15  9:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15  9:28 Martin [this message]
2004-05-15 10:15 ` GAS/GCC Assembler Code Modification sandeep
2004-05-15 13:32 ` peter willy krause
2004-05-15 20:08   ` Martin
2004-05-15 21:45     ` peter willy krause
2004-05-15 21:01       ` Martin

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=20040515112807.579e4d89@deepblack \
    --to=asmfreshmeat@gmx.de \
    --cc=linux-assembly@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.