From: <cutaway@bellsouth.net>
To: "Jan Engelhardt" <jengelh@linux01.gwdg.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] Observations on x86 process.c
Date: Mon, 13 Jun 2005 09:43:24 -0400 [thread overview]
Message-ID: <00cf01c5701d$e1c00ef0$2800000a@pc365dualp2> (raw)
In-Reply-To: <Pine.LNX.4.61.0506131436180.1658@yvahk01.tjqt.qr>
They are free to, but I've rarely(never?) seen GCC actually do it with the
default build setup. Don't trust me - look at a generated ASM listing and
convince yourself what I'm saying is true. GCC does a lot of massive
reordering within functions though.
Throw a "CFLAGS += -Wa,-al=$<.lst" at the top of the Makefile. That'll
generate a "process.c.lst" assembler listing file.
IAC, it would be harmless if one did, and goodness if one doesn't. That
sounds like a win to me :)
Tony
----- Original Message -----
From: "Jan Engelhardt" <jengelh@linux01.gwdg.de>
>
> C compilers are free to reorder functions (are they?), especially GCC when
it
> is passed -funit-at-a-time (which currently is not in CFLAGS).
next prev parent reply other threads:[~2005-06-13 12:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-13 13:02 cutaway
2005-06-13 12:37 ` Jan Engelhardt
2005-06-13 13:43 ` cutaway [this message]
2005-06-13 13:18 ` Denis Vlasenko
2005-06-13 15:01 ` cutaway
2005-06-13 14:26 ` Denis Vlasenko
2005-06-13 16:01 ` cutaway
2005-06-13 16:32 ` cutaway
2005-06-13 16:02 ` Ian Campbell
2005-06-13 19:37 ` cutaway
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='00cf01c5701d$e1c00ef0$2800000a@pc365dualp2' \
--to=cutaway@bellsouth.net \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®