🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.super
Article #499

Re: How many vector registers are useful?

#499
From: J. Giles
Date: Tue, 26 Jan 1993 18:33
22 lines
1727 bytes
kirchner@uklira.informatik.uni-kl.de (Reinhard Kirchner) writes:
> A register has an optimizing effect only when the value in it can be used
                                      ^^^^
> several times, at least twice, to avoid loading the value again from
> memory.  We all know that this is to a great extent possible on scalar
> machines.

Vectors and scalars are not really all that different.  Unless you have
overlap between the vectors they really behave just like large scalars.
My objection to the above is the statement that multiple use is the *only*
optimizing effect.  The other (also true of scalars) is when the value is
an intermediate.  A value which was just produced as the result of an
operation, which is needed as an operand almost immediately, and that's
the last you'll ever use it will not benefit from being written to memory
and read back in again.  Of course, if you can chain your functional units
together without using intermediaries at all, you won't need registers for
this purpose.
--
J. Giles
-- 
Send compilers articles to compilers@iecc.cambridge.ma.us or
{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
Technical Details
Message-ID: <93-01-195@comp.compilers>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spdcc!iecc!compilers-sender
References: <93-01-174@comp.compilers>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.super,comp.arch,comp.compilers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!spdcc!iecc!compilers-sender
From: jlg@cochiti.lanl.gov (J. Giles)
Subject: Re: How many vector registers are useful?
Reply-To: jlg@cochiti.lanl.gov (J. Giles)
Organization: Los Alamos National Laboratory
Date: Tue, 26 Jan 1993 18:33:43 GMT
Approved: compilers@iecc.cambridge.ma.us
Message-ID: <93-01-195@comp.compilers>
References:  <93-01-174@comp.compilers>
Keywords: architecture, vector
Sender: compilers-sender@iecc.cambridge.ma.us
Lines: 22