From: Jim Wilson <wilson@specifixinc.com>
To: xyzzy@hotpop.com
Cc: gcc@gcc.gnu.org
Subject: Re: Backend port: Minimizing register usage in favor of memory accesses
Date: Thu, 01 Apr 2004 19:48:00 -0000 [thread overview]
Message-ID: <406C721A.9080906@specifixinc.com> (raw)
In-Reply-To: <200403311111.08108.xyzzy@hotpop.com>
xyzzy@hotpop.com wrote:
> Can you point me in the right place to look in the i386 target so I don't mess
> this up? Is what Joem said about "lowering MEMORY_MOVE_COST" the only thing
> to do? Is there other black magic involved?
If your target has patterns that allow MEMs, then gcc will use them.
Since some gcc optimizations (like combine) try to reduce the total
number of instructions, you will naturally get code that uses MEM in
preference to REG.
You shouldn't really need to do anything else to get started. There are
other things that you can do to fine tune the result and address
specific problems, such as setting MEMORY_MOVE_COST. However, since you
haven't reported any specific problems, I can't offer any specific
suggestions.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
next prev parent reply other threads:[~2004-04-01 19:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-30 17:48 xyzzy
2004-03-31 1:43 ` Joern Rennecke
2004-03-31 1:48 ` Jim Wilson
2004-03-31 12:23 ` xyzzy
2004-04-01 19:48 ` Jim Wilson [this message]
2004-03-31 12:53 ` Richard Earnshaw
2004-03-31 13:05 ` xyzzy
2004-03-31 13:49 ` 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=406C721A.9080906@specifixinc.com \
--to=wilson@specifixinc.com \
--cc=gcc@gcc.gnu.org \
--cc=xyzzy@hotpop.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).