Article View: sci.electronics.design
Article #1123Re: Arms race
From: Martin Brown
Date: Fri, 13 Nov 2026 09:21
Date: Fri, 13 Nov 2026 09:21
56 lines
4142 bytes
4142 bytes
On 08/11/2026 19:27, Waldek Hebisch wrote: > Bill Sloman <bill.sloman@ieee.org> wrote: >> On 7/11/2026 3:57 pm, john larkin wrote: >>> On Sat, 7 Nov 2026 15:38:13 +1100, Bill Sloman <bill.sloman@ieee.org> >>> wrote: >>> >>>> On 7/11/2026 5:54 am, john larkin wrote: >> >>>> Being a compiler is tedious. >>>> >>>>> Unlike some architectures that I might name. >>>> >>>> A language isn't an architecture. It has to be processed into something >>>> that can be run on hardware (which will have an architecture - it is >>>> constructed from components that have been connected by some kind of >>>> architect). >>> >>> If that post were compiled to assembly language, it would be a nop. >> >> As a compiler, you do seem to be sub-optimal, if not downright >> afunctional. Ignoring implications you don't like isn't an option for a >> compiler. There can be functions they can't parse - in your case don't >> want to parse - but that doesn't generate a nop. > > You clearly go into area were you are not an expert. Google a > bit about "undefined behaviour" in C and you will learn that > when source code makes no sense, then C compier can do > essentially anything, which in not so rare cases means that > compiler simply deletes what programmer wrote. It can also do that at high levels of optimisation if the code is correct as intended but has no side effects beyond its own scope. The most common UB error in C is stupid buffer overrun followed by signed vs unsigned integer arithmetic overflow which can catch almost anyone out on a bad day. It only takes a moments lapse in concentration. > Explicit nop-s are rarely emited by compilers, Now you are showing *your* ignorance. Modern optimising compilers often issue variable length noops to pad hot branch target destinations where they need to be correctly aligned for optimum use of instruction cache. > but one can get 'return' > (if compiler decides that garbage source is doing nothing > useful, but it will eventually finish) or executing whatever > happens to be after deleted code (if compiler decides that > code should be never executed because it performed illegal > operation). I always liked the HCF instruction (Halt and Catch Fire) for undefined behaviour (there is *nothing* in the standard to say it can't do that). -- Martin Brown
Technical Details
Message-ID:
<11d6krh$lulq$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11bp6d1$16i93$1@dont-email.me> <ado1el51rv6t5e055ospgkmids7krtrd2m@4ax.com> <11bvc3s$3a0ts$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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Martin Brown <'''newspam'''@nonad.co.uk> Newsgroups: sci.electronics.design Subject: Re: Arms race Date: Fri, 13 Nov 2026 09:21:52 +0000 Organization: A noiseless patient Spider Lines: 56 Message-ID: <11d6krh$lulq$2@dont-email.me> References: <11bp6d1$16i93$1@dont-email.me> <ado1el51rv6t5e055ospgkmids7krtrd2m@4ax.com> <11bvc3s$3a0ts$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 13 Nov 2026 09:21:54 +0000 (UTC) Injection-Info: dont-email.me; logging-data="719546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/orOEuWc5xOW9Y/sQt0GM1TNlcODdFKSMP4qg+40LbmA=="; posting-host="de453765d3e50cc8ec07fd217593dd56" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:cE5CxsmIzSQN9Yy+Yx9/YWPnuXQ= sha256:kxZPQItXCfoyfGX9ZaEegrGLS1YnFXf9HnqQlvhq2is= sha1:UNgvcITn0Wf0mcvseLdvbgsz4S8= sha256:y3pYjtfhXlCvK/Gui7dvsw6UhLjBZ5ovYtb1IRugQrw= Content-Language: en-GB In-Reply-To: <11cqieb$3h7vq$2@paganini.bofh.team>