Article View: comp.arch
Article #386Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant)
From: Terje Mathisen
Date: Tue, 27 Oct 2026 18:20
Date: Tue, 27 Oct 2026 18:20
38 lines
3258 bytes
3258 bytes
MitchAlsup 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.
Intel actually did this correctly back in 1978/79 when they designed the
8087: If you did not have the FPU, then the main 8088 CPU would trap to
an emulation layer which did what was required. The only real problem
was that this was significantly slower than a direct call to a SW
function which did the same operation.
What we ended up with on most applications was a hybrid, where the
compiler would generate calls to a shim, said shim would inspect the
available HW (FPU/No FPU) and patch the call:
Either just modify the call target to go directly to the emuation
function, or replace the CALL FDIV_EMULATION machine code with the
actual 8087 FDIV opcode.
Since FPU ops could be both larger and shorter than a 16-bit CALL, the
compiler also had to pad each instance to whatever was larger.
Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID:
<11bqq0k$1p107$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-mailReferences:
<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>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: Terje Mathisen <terje.mathisen@tmsw.no> Newsgroups: comp.arch Subject: Re: interrupt handling latency and weird register use (was Re: OT: Epic RISC-V rant) Date: Tue, 27 Oct 2026 19:20:04 +0100 Organization: A noiseless patient Spider Lines: 38 Message-ID: <11bqq0k$1p107$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 27 Oct 2026 18:20:05 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1868807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gPxVd5qZWgDHxeN7wKSqt6mLvtlZm481+4if0Ob6FOg=="; posting-host="f4946e8ad15b04f6ae8336312dda55ae" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:sPyWpgABMXKHypmVKMKD2sV9Eu8= sha256:K8XnCAp5QOainAcTBas+NfmmfhJtPuoaizPnc/YMZHE= sha1:wNXzum43dU92iu3e+L+a0xYgAVI= sha256:EioBSOnMLZsIPHW+TRThozA9oGBl3NWKLOZB+uNN08U= In-Reply-To: <1793120789-5857@newsgrouper.org>