Article View: sci.electronics.design
Article #1115Re: Arms race
From: Bill Sloman
Date: Fri, 13 Nov 2026 05:39
Date: Fri, 13 Nov 2026 05:39
37 lines
3488 bytes
3488 bytes
On 13/11/2026 8:04 am, Johann 'Myrkraverk' Oskarsson wrote: > On 11/12/2026 12:35 PM, Bill Sloman wrote: >> On 10/11/2026 10:02 pm, Johann 'Myrkraverk' Oskarsson wrote: >>> On 11/10/2026 5:14 AM, Waldek Hebisch wrote: >>>> Actually, at '-O2' version of 'gcc' that I use replaces explicit >>>> division by 0 by the 'ud2' instruction. >>> >>> Shouldn't that be considered /erroneous compilation/? I mean, you can >>> write a signal handler that catches all signals, and isn't /division by >>> zero/ one of the Posix signals? Is the compiler prescient and makes >>> sure this only happens if the binary is ever run when the user isn't ex- >>> plictly expecting a division by zero -- rather than /invalid opcode/? >>> >>> Does the question bother you? Am I too high, or too low on the /moron/ >>> vs. /jedi master/ axis to be understood? Should we put all the GCC devs >>> in therapy for believing they are prescient? >> >> I imagine that there are situations where the programmer can be >> confident that the divisor is never going to be zero. >> >> A cautious programmer might test for a zero divisor and run an error >> recovery routine rather than doing the division. >> >> To me it does look as if you've posted an under-informed response. >> > > You should try to write a signal handler that looks at the offending > instruction or something. I'd have to lot of work before I'd be in a position to do that, and nobody would hire me to do that kind of work. I'm a much better hardware engineer than I am a programmer. <snip> -- Bill Sloman, Sydney
Technical Details
Message-ID:
<11d67r6$ibf1$4@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-mailReferences:
<11bp6d1$16i93$1@dont-email.me> <a8n6elh26hc5cg98pn84idqp7rrel2l47o@4ax.com> <11bvnp8$3ehgg$1@dont-email.me> <11c0065$3hr4g$1@dont-email.me> <39e9elp8cqum5iatg21ltbf06hc4p4dgec@4ax.com> <eig9ellto4nl35n0cd8elct4boi2018mcp@4ax.com> <11ck9s9$2dmvp$1@dont-email.me> <fe8selhl8um5p168shk979cms2elurlhh1@4ax.com> <11cma06$34o3u$2@dont-email.me> <4rbtelp38pp2qnaqha6cq7csbfafpgk9i9@4ax.com> <11cmffm$36ee0$1@dont-email.me> <11cqieb$3h7vq$2@paganini.bofh.team> <11cqnt0$mtaq$1@dont-email.me> <11ctd4b$3rem1$1@paganini.bofh.team> <_QCIS.2$ev2.0@fx08.ams4> <11d3fn7$3ks1o$1@dont-email.me> <gRpJS.420$0op4.49@fx15.ams4>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: Bill Sloman <bill.sloman@ieee.org> Newsgroups: sci.electronics.design Subject: Re: Arms race Date: Fri, 13 Nov 2026 16:39:37 +1100 Organization: A noiseless patient Spider Lines: 37 Message-ID: <11d67r6$ibf1$4@dont-email.me> References: <11bp6d1$16i93$1@dont-email.me> <a8n6elh26hc5cg98pn84idqp7rrel2l47o@4ax.com> <11bvnp8$3ehgg$1@dont-email.me> <11c0065$3hr4g$1@dont-email.me> <39e9elp8cqum5iatg21ltbf06hc4p4dgec@4ax.com> <eig9ellto4nl35n0cd8elct4boi2018mcp@4ax.com> <11ck9s9$2dmvp$1@dont-email.me> <fe8selhl8um5p168shk979cms2elurlhh1@4ax.com> <11cma06$34o3u$2@dont-email.me> <4rbtelp38pp2qnaqha6cq7csbfafpgk9i9@4ax.com> <11cmffm$36ee0$1@dont-email.me> <11cqieb$3h7vq$2@paganini.bofh.team> <11cqnt0$mtaq$1@dont-email.me> <11ctd4b$3rem1$1@paganini.bofh.team> <_QCIS.2$ev2.0@fx08.ams4> <11d3fn7$3ks1o$1@dont-email.me> <gRpJS.420$0op4.49@fx15.ams4> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 13 Nov 2026 05:39:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="601569"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1IV7JhheMnVB3ZdYORnFQKaKYrdgx96w="; posting-host="256c6ddaa442941387ee780f91abc213" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:x66hu4qUmoQYKm/trheGIsq4sxc= sha256:QYTEJaIL60FO4wxsWLhsG/CXXAO8rPAvFO7vqt2TS0I= sha1:9Wx+cKY68Wce8nIABcp3++5OI0M= sha256:L/RXNr9okL/LQDujAvBRIe8261FH6Xyvls7fXg3MwXg= Content-Language: en-US X-Antivirus-Status: Clean X-Antivirus: Norton (VPS 261112-8, 13/11/2026), Outbound message In-Reply-To: <gRpJS.420$0op4.49@fx15.ams4>