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 23:12:00 -0000 [thread overview]
Message-ID: <4DF148B9.6070709@impulze.org> (raw)
In-Reply-To: <BANLkTikg+N_E=OYU-wU2Od=2rsh=K=Ktsg@mail.gmail.com>
On 09.06.2011 20:02, Paul Römer wrote:
> Hi,
>
> What happens if you compile only with -fomit-frame-pointer? I'm not sure
> if it will be activated without adding an -Ox option. Can you add an
> example code?
impulze@istari ~ $ gcc-4.4 -S -fomit-frame-pointer test.c && grep -m1
lea test.s
lea 12(%esp), %edi
impulze@istari ~ $ gcc-4.5 -S -fomit-frame-pointer test.c && grep -m1
lea test.s
lea 12(%esp), %edi
impulze@istari ~ $ gcc-4.6 -S -fomit-frame-pointer test.c && grep -m1
lea test.s
lea 12(%esp), %edi
impulze@istari ~ $ cat test.c
void f()
{
int i;
__asm__ __volatile__("lea %0, %%edi\n"::"m"(i):"%esp");
}
> What gcc you use?
4.4.5, 4.5.2, 4.6.0
--
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
next prev parent reply other threads:[~2011-06-09 20:26 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
[not found] ` <BANLkTikg+N_E=OYU-wU2Od=2rsh=K=Ktsg@mail.gmail.com>
2011-06-09 23:12 ` Daniel Mierswa [this message]
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=4DF148B9.6070709@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).