Article View: comp.arch
Article #540Re: Another Kick at Concertina III
From: John Savard
Date: Wed, 04 Nov 2026 21:35
Date: Wed, 04 Nov 2026 21:35
72 lines
4892 bytes
4892 bytes
On Wed, 04 Nov 2026 15:59:33 GMT, quadibloc@invalid.com (John Savard) wrote: >On Fri, 30 Oct 2026 03:49:16 GMT, quadibloc@invalid.com (John Savard) >wrote: >>On Fri, 30 Oct 2026 00:01:23 GMT, quadibloc@invalid.com (John Savard) >>wrote: >>>Unfortunately, while that solution has the virtue of concentrating the >>>use of opcode space on what is most important, it looks to be >>>genuinely bizarre. >>I had more opcode space available than I realized, which meant that I >>did not have to make it quite as weird as I feared. The secondary >>double-precision operate instructions that connect the regular >>floating-point registers to the extended floating-point registers can >>appear on both the left and right sides of the 32-bit word, as the >>opcode space for long instructions is available from somewhere else, >>so I don't need to limit those instructions to the right half. >I had to go back to a little weirdness, because I needed *one more >bit* of opcode space for 64-bit instructions in order that immediate >instructions with 48-bit immediate values (needed for the Medium >floating-point type) could be 64-bit instructions instead of 96-bit >instructions. I have now uploaded the page with the instructions larger than 32 bits, http://www.quadibloc.com/arch/caj0102.htm to round out the initial presentation of the instruction formats for this architecture. Incidentally, it may be asked why these instructions are all multiples of 32 bits in length, instead of 16 bits, and why I tolerated the additional overhead bits so that it was immediately apparent when 32 bits weren't the first 32 bits of an instruction. This may have a performance benefit, but it's very slight. There are ways to very efficiently decode the length of an instruction. The answer really lies in the short instructions. The 32-bit load/store memory-reference instructions needed about 3/4 of the total 32-bit opcode space. I managed to squeeze the other basic 32-bit instructions into that 3/4, instead of using up 7/8, the way some Concertina II incarnations did. But short instructions that only had 14 free bits, having two bits of overhead each, were inadequate. Short instructions with only 15 bits aren't great either. As Concertina II showed, ideally, short instructions should have 18 bits, or at least 17 bits. But I _did_ manage to squeeze something barely passable into 15 bits. That meant only allowing the short instructions to occur in pairs. Are short instructions that can only occur in pairs any good? I think so. If there are stretches where you can use three or more short instructions in a row, you're guaranteed to save at least 16 bits. So, if short instructions are a major part of a program, forcing them to occur in pairs will lose a percentage of the potential savings, but not almost all of those savings. But if I'm not going to have individual 16-bit short instructions that can be freely placed anywhere, and instead so far the instruction set is RISC-like in only having 32-bit instructions, then I think that since the instructions that have to be longer than 32 bits are a very small portion of the instruction set, for relatively infrequent use... I might as well restrict them to be multiples of 32 bits in length, and require that they not interfere with decoding 32-bit chunks in parallel, because even a tiny gain in general performance outweighs the compactness of a very minor portion of the instruction set. John Savard
Technical Details
Message-ID:
<6aeba1dd.58949609@news.eternal-september.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!.POSTED!not-for-mailReferences:
<6ae0f253.29507609@news.eternal-september.org> <6ae3514d.1748656@news.eternal-september.org> <6ae36cab.8754109@news.eternal-september.org> <1793295922-5857@newsgrouper.org> <6ae3ddc4.2992625@news.eternal-september.org> <6ae41335.16673656@news.eternal-september.org> <6aeb5608.39536078@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!.POSTED!not-for-mail From: quadibloc@invalid.com (John Savard) Newsgroups: comp.arch Subject: Re: Another Kick at Concertina III Date: Wed, 04 Nov 2026 21:35:47 GMT Organization: A noiseless patient Spider Lines: 72 Message-ID: <6aeba1dd.58949609@news.eternal-september.org> References: <6ae0f253.29507609@news.eternal-september.org> <6ae3514d.1748656@news.eternal-september.org> <6ae36cab.8754109@news.eternal-september.org> <1793295922-5857@newsgrouper.org> <6ae3ddc4.2992625@news.eternal-september.org> <6ae41335.16673656@news.eternal-september.org> <6aeb5608.39536078@news.eternal-september.org> Injection-Date: Wed, 04 Nov 2026 21:35:48 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1131378"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wtX3cOcChRfdN2AjCRGE1XO4j2dPE9Sw="; posting-host="6ecabc94c8461e214eba12ccbfb9672f" Cancel-Lock: sha1:+5EUbjkK6sLA05cgAaBIsd0g7SA= sha256:XZJQYjAHiOWf61cyd/mU61zhHMjiv6v3GmZ+YTNaHgM= sha1:1kcsitNz2TI54Ze8KNlOXr1e3xY= sha256:Ur3jfG1lxAPReJ+0I2sbQrRgMz2poXU1TKz4eIBhTP0= X-Newsreader: Forte Free Agent 1.1/32.230