public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Daniel Mierswa <impulze@impulze.org>
To: gcc-help@gcc.gnu.org
Subject: Re: Inline ASM and stack/base pointer
Date: Thu, 09 Jun 2011 20:41:00 -0000	[thread overview]
Message-ID: <4DF14126.4090509@impulze.org> (raw)
In-Reply-To: <mcrr5723nfg.fsf@coign.corp.google.com>

On 09.06.2011 17:49, Ian Lance Taylor wrote:
> Add "%esp" to your clobber list.  That should force the compiler to pass
> any stack variables using an offset from %ebp.

Ok it does seem to have an effect after all, as long as I don't compile
it with -O2, as soon as -O2 is passed, it uses esp instead of ebp and
does not even build up a base pointer at all in the generated assembly.

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply
know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22

  parent reply	other threads:[~2011-06-09 19:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 15:22 Daniel Mierswa
2011-06-09 18:09 ` Ian Lance Taylor
2011-06-09 18:47   ` kevin diggs
2011-06-09 19:53     ` Ian Lance Taylor
2011-06-09 20:26   ` Daniel Mierswa
2011-06-09 20:41   ` Daniel Mierswa [this message]
     [not found]     ` <BANLkTikg+N_E=OYU-wU2Od=2rsh=K=Ktsg@mail.gmail.com>
2011-06-09 23:12       ` Daniel Mierswa
2011-06-10  1:21         ` Ian Lance Taylor

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=4DF14126.4090509@impulze.org \
    --to=impulze@impulze.org \
    --cc=gcc-help@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).