From: Andreas Schwab <schwab@suse.de>
To: "Sam Lauber" <sam124@operamail.com>
Cc: gcc@gcc.gnu.org
Subject: Re: Useless assembly
Date: Mon, 29 Nov 2004 12:04:00 -0000 [thread overview]
Message-ID: <jey8gllymr.fsf@sykes.suse.de> (raw)
In-Reply-To: <20041128212717.4590B2B2B86@ws5-7.us4.outblaze.com> (Sam Lauber's message of "Sun, 28 Nov 2004 22:27:17 +0100")
"Sam Lauber" <sam124@operamail.com> writes:
> By hand-optimizing the assembly, I made this:
>
> .LC0:
> .string "Hello World!\n"
> .globl main
> .type main, @function
> main:
> pushl %ebp
> movl %esp, %ebp
> movl $.LC0, (%esp)
> call printf
> leave
>
> It worked the exact same.
It doesn't return the correct exit code.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2004-11-29 10:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-28 21:40 Sam Lauber
2004-11-28 21:41 ` Kazu Hirata
2004-11-28 21:56 ` Eric Botcazou
2004-11-28 22:06 ` Steven Bosscher
2004-11-28 22:46 ` jlh
2004-11-29 4:25 ` Robert Dewar
2004-11-29 12:04 ` Andreas Schwab [this message]
2004-11-30 3:12 Sam Lauber
2004-11-30 4:36 ` Robert Dewar
2004-11-30 14:12 ` Dave Korn
2004-11-30 16:20 ` Robert Dewar
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=jey8gllymr.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=gcc@gcc.gnu.org \
--cc=sam124@operamail.com \
/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).