🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #418

Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)

#418
From: MitchAlsup
Date: Wed, 28 Oct 2026 15:47
47 lines
3293 bytes
antispam@fricas.org (Waldek Hebisch) posted:

> MitchAlsup <user5857@newsgrouper.org.invalid> wrote:
> > anton@mips.complang.tuwien.ac.at (Anton Ertl) posted:
> > 
> >> makendo <makendo@makendo.invalid> writes:
> >> >The case where division is implemented but
> >> >multiplication is not does not have a name assigned -- it is pretty
> >> >well known that hardware designers, compiler writers and low-level
> >> >programmers hate division far more than multiplication, so I doubt
> >> >if divison-only hardware is even out in the wild for any ISA...
> >> 
> >> I don't think that "hate" is the right concept.  Division is costly:
> > 
> > But "lack of division" is also costly !! especially if some future
> > implementation will have division {which it will} and then you have
> > no direct means to make the dusty decks fast.
> 
> You assume binaries or assembler code.  In microcontroller world
> programs are frequently compiled for one specific CPU model.
> And in case of microcontrollers savings due to ommision of
> divide circuit can be significant.

This gets at my point: my point is the opposite of RISC-V--that is
one defines all the OpCodes and if an implementation does not deal
with OpCode X, that implementation takes an OPERATION fault. RISC-V
leaves that OpCode slot undefined (potentially available for other
uses).

>                                     I know you do not like
> Risc-V, but one small model (CH32V003) even skips multiplication.
> IIUC even smallest Arm-s have multiplication (which theoretically
> can be slow, but on all small models that I know it 32 bit
> multiplication executes in 1 cycle).
> 
> > Note to µArchitects, put the instruction in even if you are going to
> > TRAP to SW emulation. Later on when DIV is implemented it just runs
> > faster and you had to do nothing (but put it in).
> 
> You need to make it fast enough so that compilers are not tempted
> to call software emulation.  Also beware of interrput latency,

I am shooting at 10 cycles there and 10 cycles back.

> if division is slow microcontroller probably should allow
> interrupts in the middle of division.
> 
Technical Details
Message-ID: <1793202439-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: <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>

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: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
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>
Date: Wed, 28 Oct 2026 15:47:19 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1793202439-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Wed, 28 Oct 2026 15:47:19 GMT
User-Agent: Newsgrouper/0.9.0