๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #701

Re: Really compressed instruction streams

#701
From: Paul Clayton
Date: Thu, 12 Nov 2026 04:11
71 lines
4490 bytes
On 9/24/26 6:17 PM, MitchAlsup wrote:
 > Thomas Koenig <tkoenig@netcologne.de> posted:

[snip block-based instruction compression]
>> For example, one could make the Icache into a micro-op-store
>> and decode on fetching from L2.
> 
> What happens when somebody (ld.so) writes into code space ??
> What happens when SSD writes into code space ??

This seems the same kind of problem that ยตop caches face. A
write to the compressed storage address has to invalidate the
cached uncompressed format. Coherent ยตop caches do not seem to
be a problem. (This does increase the cost of modifying cached
code. Something as "harmless" โ€” in the sense of not adjusting 
data flow โ€” as changing one computation immediate value will
typically invalidate an entire Icache block of code, but this
is also just a consequence of writeback data caching. I doubt
localized changes are common.)

>> Branch targets could then be in the form block,instruction in
>> block.
> 
> Or bit addresses (see above) and leave out blocks altogether.

Bit addressing would require larger offsets. If the bit-variable
length instructions are not designed to be expanded into a
reasonably nice cached format, a compressed format that does
target a "nice" cached format would presumably be better.

Bit-variable length instructions also localize the compression
within the instruction, which sacrifices some compression (while
avoiding the possibility of internal fragmentation of blocks).

>>          There would have to be an upper limit on the number
>> of instructions per block, leading to some waste for easily
>> compressible instructions.  Also, instructions which no
>> longer fit in a block would reduce the efficieny.
> 
> Packet and trace caches have this problem. After building a
> packet-cache (1991) and seeing the instruction density (60%
> filled and less than 1/2 as dense as normal instruction
> cache--I decided to go a different direction for my current
> 6-wide machine.

Would the density have been significantly improved if two
code slices could share a "cache block". If I understand
correctly, the packet-cache was a VLIW format, so compaction
would have been less efficient requiring at least a bit per
operation slot and extra time to expand that format. Sharing
a block would also required an additional tag and slot-present
bits. If the slots were different sizes (which is a nice feature
of traditional VLIW), expansion would be more complex.

Choosing a block size would also mean weighing utilization
tradeoffs. If the such a cache could have two valid hits that
could be read in parallel (being in different banks by
construction), it might be possible/practical to split a
packet into two blocks, so two blocks with 1.5 packet capacity
could hold two full packets and two half-packets or four
appropriately compacted packets (e.g., 0.7,0.8, 0.9, 0.6).

[snip]
> Imaging the poor guy trying to debug::
> 
>       ADD  IP,R7,#1234567

Since the proposal was for block compression, instruction
targets would be encoded as block+offset. Adding an
integer to an instruction address does not seem to make
sense. (Maybe I am missing something.)
Technical Details
Message-ID: <11d7khb$1a1es$3@dont-email.me>
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: <1193vo8$30ki0$1@dont-email.me> <1790288238-5857@newsgrouper.org>

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: Paul Clayton <paaronclayton@gmail.com>
Newsgroups: comp.arch
Subject: Re: Really compressed instruction streams
Date: Wed, 11 Nov 2026 23:11:56 -0500
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <11d7khb$1a1es$3@dont-email.me>
References: <1193vo8$30ki0$1@dont-email.me> <1790288238-5857@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 13 Nov 2026 18:22:35 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1377756"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/WePu2qrRBXtOqGQH1rpwrlre/EbHFzs0="; posting-host="d662f6591078f43538473732474ebcb1"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101
 Thunderbird/140.0
Cancel-Lock: sha1:e8gegVWsEyazHcGxrQC/wBFz/9Q= sha256:PS+bQGNe5MHA4bDwsK8bAPgdMaCGdfDZcHG4oAR3/7A=
	sha1:0uRUPcIRicYuk22O9i9PQL2b6bc= sha256:sj4XFzX9EtkC5Fbit3lMMjvfDWvLj3JyoWExwLVTJ/E=
In-Reply-To: <1790288238-5857@newsgrouper.org>