linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: m_hrebien@wp.pl
To: linux-assembly@vger.kernel.org
Subject: Re: gas' nop(s)
Date: Tue, 06 Aug 2002 11:30:56 +0200	[thread overview]
Message-ID: <3D4F9750.328C98B1@wp.pl> (raw)
In-Reply-To: 20020805222102.193b66fc.lx@lxhp.in-berlin.de

h-peter recktenwald wrote:
> 
> > .text
> >
> > .align 1
> >
> > .globl _start
> > _start:
> >       mov     $1,%eax
> >       xor     %ebx,%ebx
> >       int     $0x80
> >
> 
> echo ".att_syntax noprefix;.global XLAB;jnc XLAB;movl eax,ebx;\
>       movl ebx,edx;XLAB:;.end"|as -achnlsd m=l --gstabs |tee t
> 
> the listing:
> ----------------------------------------------------
>    1 0000 0F83FCFF      .att_syntax noprefix
>    1      FFFF89C3
>    1      89DA89F6
> DEFINED SYMBOLS
>     {standard input}:1      .text:0000000a XLAB
> 
> NO UNDEFINED SYMBOLS
> --------------------------------------------------
> asm 4 bytes shorter w/o the ".global" statement, <jnc> then w. byte disp.

Yes, right! But it still adds "89F6" padding which stands for "mov
%esi,%esi" & my question was how to avoid this.

-- 
Maciej Hrebien


  reply	other threads:[~2002-08-06  9:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-04 20:28 gas' nop(s) m_hrebien
     [not found] ` <20020805091651.245c7d4b.jani@iv.ro>
2002-08-05  9:23   ` m_hrebien
2002-08-05 10:20 ` h-peter recktenwald
2002-08-05 17:53   ` m_hrebien
2002-08-05 22:21     ` h-peter recktenwald
2002-08-06  9:30       ` m_hrebien [this message]
2002-08-07  7:41         ` h-peter recktenwald
2002-08-08 15:50           ` h-peter recktenwald
2002-08-09 16:07             ` h-peter recktenwald
2002-08-09 19:47               ` Maciej Hrebien

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=3D4F9750.328C98B1@wp.pl \
    --to=m_hrebien@wp.pl \
    --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 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).