🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #790

Re: Concertina IV Again?

#790
From: John Savard
Date: Tue, 17 Nov 2026 15:56
103 lines
5658 bytes
On Tue, 17 Nov 2026 07:31:02 -0000 (UTC), Thomas Koenig
<tkoenig@netcologne.de> wrote:

>Well, it's possible.  In gcc, for example, you can declare register
>classes which are available for certain operations.  This is how
>things like the 68000's address and data registers are handled.

Of course, I do that _too_. Although there are 32 integer registers
and 32 floating registers, only registers 1 to 7 may be index
registers, and only registers 25 to 31 may be the primary (associated
with 16-bit displacements) base registers.

>But it is rarely a good idea because it increases pressure on the
>register allocator, and can lead to a lot of shuffling of values
>back and forth.

But making the short instructions work in the way I've described - a
two-bit register window selector, followed by two three-bit register
specifications - doesn't really threaten to have that consequence. If
there's a danger of needing to add an extra instruction to the code...
use 32-bit operate instructions instead of the short ones.

In the case of dividing the 32 integer registers into four groups of
eight, and assigning one to base registers for 16-bit displacements,
another for base registers for 12-bit displacements, and another one
yet to base registers for 20-bit displacements... I also see no
problem. Normal programs only use a few general registers as base
registers, so specifying they have to take up space in these registers
rather than those should cause no problems.

But this line of thinking has led me to see a potentially fatal
problem with the Concertina II paradigm after all!

Possibly having only 7 potential index registers, instead of, say, 15,
does make the Concertina II architecture inferior! Maybe one has to
have the versatility of juggling many arrays at once!

So if FORTRAN for the 7090 only allowed three-dimensional arrays,
FORTRAN for the 7094 allowed seven-dimensional arrays, and only with
FORTRAN for the IBM 360 were programmers finally content when they
were allowed fifteen-dimensional arrays (which presumably turned the
360, at least for integers, into an accumulator machine, having only
general register zero left)... then this is a serious issue.

Why is this serious?

I could easily decide that 12-bit displacements and 20-bit
displacements, as they go in opposite directions from the norm of
16-bit displacements, could just share the same eight-register
subdivision for their seven base registers.

But if I make the index register field in a normal memory-reference
instruction four bits long... and I can't make the memory 33 bits
wide... I have to shorten something.

And there was a long, agonizing period during Concertina II
development in which I tried one different way after another to reduce
the opcode space claimed by load/store memory-reference instructions
from 3/4 of the total... and every one was so utterly unsatisfying
that I finally realized that I had no choice but to give up.

If people only needed up to 12-dimensional arrays in practice, then
the four floating-point registers and the Data General Nova show that
four registers is enough to escape the limitations of being
accumulator-oriented, so the System/360 would survive.

My least painful scheme of making room was to reduce the number of
index registers by one, so that all seven base registers were
available for isolated variables, but only three base registers were
available for indexed addressing.

I see a way to improve on that. But it's also painful, and elaborate,
and strange. And, likely, unnecessary. I may be entirely mistaken in
thinking that seven index registers is not enough.

(op code) 5 bits
(destination register) 5 bits
0
(index register) 2 bits
(base register) 3 bits
(displacement) 16 bits

(op code) 5 bits
(destination register) 5 bits
1
(index register) 3 bits
(base register) 2 bits
(displacement) 16 bits

All seven base registers from 25 to 31 may be used with scalar
variables, or with index registers 1 through 3.

Only base registers from 29 to 31 may be used with index registers 7
through 15.

So arrays aren't _totally_ limited to the memory pointed to by three
of the base registers, but only three base registers are available for
memory containing... the more complicated arrays!

The total number of index registers plummets from 15 to 11, and is 11
really enough of a gain over 7 to make such complication worthwhile?

John Savard
Technical Details
Message-ID: <6afc6aa5.516750@news.eternal-september.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <6af629a7.27886218@news.eternal-september.org> <1794532970-5857@newsgrouper.org> <6afbcf18.68729046@news.eternal-september.org> <11dgvrm$78c1$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: quadibloc@invalid.com (John Savard)
Newsgroups: comp.arch
Subject: Re: Concertina IV Again?
Date: Tue, 17 Nov 2026 15:56:06 GMT
Organization: A noiseless patient Spider
Lines: 103
Message-ID: <6afc6aa5.516750@news.eternal-september.org>
References: <6af629a7.27886218@news.eternal-september.org> <1794532970-5857@newsgrouper.org> <6afbcf18.68729046@news.eternal-september.org> <11dgvrm$78c1$1@dont-email.me>
Injection-Date: Tue, 17 Nov 2026 15:56:07 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="599181"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/yUwugoJkBq2I2mbWg9wI++ITLwavW4sA="; posting-host="d8bc7775d0dfffb9e4233d91bb35aab7"
Cancel-Lock: sha1:TFsJHSVwkbeuny+BvkuPusmTP1Q= sha256:rni7qC57eHen4tgcD+zRQcPEfcnTr2dk8+oK1hZfnKg=
	sha1:xjBzYT2EGBdeACW7q/krbrvIUt0= sha256:lz3PQli5c6KOR2WwVbYbCX+ejeT4UWyUE3AukDFp2jo=
X-Newsreader: Forte Free Agent 1.1/32.230