From: "Adam J. Richter" <adam@yggdrasil.com>
To: johan.adolfsson@axis.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: List of all-zero .data variables in linux-2.4.3 available
Date: Thu, 12 Apr 2001 12:01:55 -0700 [thread overview]
Message-ID: <200104121901.MAA04011@adam.yggdrasil.com> (raw)
johan.adolfsson@axis.com writes:
>Shouldn't a compiler be able to deal with this instead?
Yes. I sent some email to bug-gcc about this a couple of
months ago and even posted some (probably horribly incorrect) code
showing roughly the change I had in mind in the gcc source code
for the simple case of scalar variables. I was told that some code
to this was put in and then removed from gcc a long time ago, and
nobody seemed interested in putting it back in. I would think that this
would be a basic optimization that I would expect the compiler to make,
just like deleting "if(0) {......}" code, but gcc does not currently
do that. If somebody would like to fix gcc and do the necessary
lobbying to get such a change integrated, that would be great. However,
until that actually happens, I hope the file that I posted to
ftp://ftp.yggdrasil.com/private/adam/linux/zerovars/ will be useful
to individual maintainers and in identifying the largest arrays of
zeroes that can fix fixed in a few lines.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
next reply other threads:[~2001-04-12 19:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-12 19:01 Adam J. Richter [this message]
2001-04-12 19:14 ` Ulrich Drepper
2001-04-12 21:27 ` H. Peter Anvin
-- strict thread matches above, loose matches on Subject: below --
2001-04-12 20:04 Adam J. Richter
2001-04-12 19:50 Adam J. Richter
2001-04-12 19:29 Adam J. Richter
2001-04-12 19:40 ` Ulrich Drepper
2001-04-16 14:33 ` Pavel Machek
2001-04-12 12:36 Adam J. Richter
2001-04-12 14:44 ` johan.adolfsson
2001-04-12 14:57 ` Russell King
2001-04-12 15:28 ` Richard B. Johnson
2001-04-12 19:52 ` Jeff Garzik
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=200104121901.MAA04011@adam.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=johan.adolfsson@axis.com \
--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®