🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #494

Re: Unimplemented opcodes via jump tables (was: interrupt handling latency and weird register use)

#494
From: Thomas Koenig
Date: Sat, 31 Oct 2026 19:10
47 lines
3610 bytes
MitchAlsup <user5857@newsgrouper.org.invalid> schrieb:
> Thomas Koenig <tkoenig@netcologne.de> posted:
>
>> Josh Vanderhoof <x@y.z> schrieb:
>> 
>> > Say instead it's for something called featurex and some processors 
>> > want it in hardware and some don't.  It'd be much easier for 
>> > someone writing the software if a standard sequence of 
>> > instructions for doing featurex was defined and new processors 
>> > that do featurex in hardware automatically checked call targets 
>> > and recognize when the instruction sequence matches featurex. 
>> > Then when the routine is called later uses the dedicated 
>> > instruction instead doing the call.
>> 
>> You could have instructions that either do things in hardware or
>> jump to a subroutine at a defined address from a jump table
>> index by opcode.  That would solve the problem, I think, and
>
> That would add LDD-latency plus JUMP-latency to instruction-latency--
> even if the index was extracted by HW. Probably around 5-6 cycles.

Sounds reasonable.  Much faster than trap+emulate, fixup at runtime
would probably need lots of NOPs, and branching to different
versions multiplies code size by the number of versions you have.

It would simply be just another compromise, I guess.

>  
>> > It's be really nice because the code would be identical for 
>> > everything and also run about as fast as possible on everything. 
>> > I have no idea how hard it would be to keep the track of which 
>> > subroutines are actually new instructions though.
>> 
>> this would be OK.
>> 
>> Has anybody actually done this?
>
> How do you think microCode works ??

What I was thinking of was to expose this in the ISA, so people
could use multiplication etc without having to switch on CPU
type, which is a pain.  Call it poor man's millicode.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11c5efn$1cdb3$1@dont-email.me>
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
References: <87qzk0nejz.fsf@nightsong.com> <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian> <2026Sep1.225146@mips.complang.tuwien.ac.at> <11bpfm8$190ap$1@dont-email.me> <2026Oct27.171414@mips.complang.tuwien.ac.at> <1793120789-5857@newsgrouper.org> <11bsq36$36q1t$3@paganini.bofh.team> <1793202439-5857@newsgrouper.org> <ygnwlr084yt.fsf@y.z> <1793320218-5857@newsgrouper.org> <ygnjymy5uo2.fsf@y.z> <11c4dcm$102m6$1@dont-email.me> <1793471234-5857@newsgrouper.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: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: comp.arch
Subject: Re: Unimplemented opcodes via jump tables (was: interrupt handling
 latency and weird register use)
Date: Sat, 31 Oct 2026 19:10:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <11c5efn$1cdb3$1@dont-email.me>
References: <87qzk0nejz.fsf@nightsong.com>
 <116d89d$27baf$1@paganini.bofh.team> <87ecfcagiw.fsf_-_@debian>
 <2026Sep1.225146@mips.complang.tuwien.ac.at>
 <11bpfm8$190ap$1@dont-email.me>
 <2026Oct27.171414@mips.complang.tuwien.ac.at>
 <1793120789-5857@newsgrouper.org> <11bsq36$36q1t$3@paganini.bofh.team>
 <1793202439-5857@newsgrouper.org> <ygnwlr084yt.fsf@y.z>
 <1793320218-5857@newsgrouper.org> <ygnjymy5uo2.fsf@y.z>
 <11c4dcm$102m6$1@dont-email.me> <1793471234-5857@newsgrouper.org>
Injection-Date: Sat, 31 Oct 2026 19:10:48 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1455459"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18VmqyOkyVogmLUO0FhPJauuXJ5x7x1eX0="; posting-host="fa179064a8448e47a202b5454009d45d"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:H3n0X10K7GgF0zqMKtKb7748ZvA= sha256:Gq4QBY+oEBqQsru1oxKYNaHQqVuVGobWAbYNx8IR1uY=
	sha1:1mbDr9a8bfa5HKbLpPY9wGIt9dk= sha256:EnAB/nFa7aKYJntmN6nEFnG4cDV/YRqB9QDzhcW7vkQ=