🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #87

Re: Concertina II Update

#87
From: MitchAlsup
Date: Tue, 13 Oct 2026 21:24
75 lines
4397 bytes
quadibloc@invalid.com (John Savard) posted:

> On Sun, 11 Oct 2026 21:34:47 GMT, MitchAlsup
> <user5857@newsgrouper.org.invalid> wrote:
> 
> >Have you measured the space saving of paired 16-bit instructions
> >versus not having any 16-bit instructions ?
> 
> No, I'm not even sure how to conduct a valid measurement of that type.
> Constructing a compiler for my ISA and then turning it loose on a
> large corpus of FORTRAN would involve an immense amount of work.
> 
> If a program consists mostly of operate instructions, and only a small
> percentage of them need to be three-address, then having 16-bit
> instructions would almost shrink the size of the program in half.

You can always have a 16-bit instruction after a 32-bit instruction.
You cannot have a 32-bit instruction after a 16-bit instruction (unless
your IP indexes memory on 16-bit boundaries. CDC 6600 did not. CDC 7600
did.

In my ASM reading of My 66000 compiled output, about 35% of instructions
could be 16-bits, with your constants, your compiled output could be similar
since we get rid of instructions which paste constants, and both have index-
ing. I saw this as getting rid of the "easy" 16-bit instructions; leaving 
opportunities. Also note, my LOOP instruction performs ADD-CMP-BC where 
the ADD and CMP could be 16-bits--but I get all 3 in a single 32-bit 
instruction.

When I see:

          MEM    Rd,[IP,Rindex<<scale+DISP]

This gets rid of 2× 16-bit instructions all by itself; reducing opportunities.

> If the 16-bit instructions had to come in pairs, then half the time,
> the last instruction in any run of operate instructions would have to
> be expanded to 32 bits. So that would be a small loss of savings.

I think reading real code you will find the lack-of-savings greater.

> Does that mean I made a horribly disastrous choice, then, by getting
> rid of the paired 16-bit short instructions? Hold on! I still have
> short instructions. Instead of 15-bit ones in pairs, I have 17-bit
> ones. So those don't have the restriction that both registers have to
> be in the same group of eight registers - about which I recieved many
> complaints here.
> 
> They do come with 12.5% overhead (less the extra 17th bits in the
> header) for the Type I header required to use them. But that
> percentage is over all instructions in a block with such short
> instructions, not just for the short instructions themselves.
> 
> So your question _seems_ to be only relevant to a case which does not
> exist: the case where I got rid of short instructions entirely. When I
> got rid of block structure, though, short instructions effectively
> grew to 24 bits, so I did lose a big chunk of the space savings.
> 
> Yes, I _know_ _you_ don't need block structure for a lot of the things
> I'm using it for. But I want to simplify instruction decoding even for
> implementors who may not be terribly clever.

It took me less time to not-need block structure than it did for you 
to meander around to some-kind-of sensible block structure. This does
not bode well for implementation.

>                                              And I'm trying to cram an
> awful lot of stuff into my ISA - particularly into the opcode space
> for instructions that are 32 bits long; this goal also prevents me
> from doing as well as you have done in these departments.

An ISA is just as much about what you leave out as to what you leave in.
 
> John Savard
Technical Details
Message-ID: <1791926696-5857@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <6acae6db.8174359@news.eternal-september.org> <1791754487-5857@newsgrouper.org> <6acc502d.12049968@news.eternal-september.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Concertina II Update
References: <6acae6db.8174359@news.eternal-september.org> <1791754487-5857@newsgrouper.org> <6acc502d.12049968@news.eternal-september.org>
Date: Tue, 13 Oct 2026 21:24:56 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1791926696-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Tue, 13 Oct 2026 21:24:56 GMT
User-Agent: Newsgrouper/0.9.0