From: "David S. Miller" <davem@dm.cobaltmicro.com>
To: ultralinux@vger.kernel.org
Subject: Re: VIS
Date: Fri, 17 Jul 1998 13:42:26 +0000 [thread overview]
Message-ID: <marc-linux-ultrasparc-90222358531059@msgid-missing> (raw)
In-Reply-To: <marc-linux-ultrasparc-90222358531047@msgid-missing>
Date: Fri, 17 Jul 1998 15:29:49 +0200
From: Andi Kleen <ak@muc.de>
On Fri, Jul 17, 1998 at 02:46:54PM +0200, David S. Miller wrote:
> GCC doesn't get perfect scheduling in any event. And it won't for
> some time until real superscalar facilities are added.
This is true for gcc, but Sun's compiler does near perfect scheduling for
the UltraSparc chips afaik, so they have a bit different requirements.
Yes they do get perfect scheduling, and I have to say it is really
nicely done.
Do you see a better design for 100% schedulable inline assembler?
Of course. And it retails the beauty of GCCs interface and obtains
the benefit of sunpro's.
Simply keep things as they currently are, then add hooks to the back
end to add minimal parsing of the inline asm. I say minimal, because
that is all that is necessary, you really only need to determine
the class of each insn (enough to compute the "type" attribute which
gcc uses for scheduling). The rest is implicit in the constraints and
the register args used by each instruction.
In this way you don't lose any of the generics of the GCC interface.
And in such a scheme "asm volatile" can be extended to mean "don't
schedule me dammit, I coded it this way, don't move shit around".
I may even implement this, I'm in the middle of rewriting the entire
sparc backend for egcs anyways.
Later,
David S. Miller
davem@dm.cobaltmicro.com
prev parent reply other threads:[~1998-07-17 13:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-16 12:23 VIS Sven Grundmann
1998-07-16 12:27 ` VIS David S. Miller
1998-07-16 13:12 ` VIS Sven Grundmann
1998-07-16 13:26 ` VIS David S. Miller
1998-07-16 23:37 ` VIS Andi Kleen
1998-07-17 3:58 ` VIS David S. Miller
1998-07-17 11:22 ` VIS Andi Kleen
1998-07-17 12:34 ` VIS David S. Miller
1998-07-17 12:44 ` VIS Andi Kleen
1998-07-17 12:46 ` VIS David S. Miller
1998-07-17 13:29 ` VIS Andi Kleen
1998-07-17 13:42 ` David S. Miller [this message]
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=marc-linux-ultrasparc-90222358531059@msgid-missing \
--to=davem@dm.cobaltmicro.com \
--cc=ultralinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.