| Deutsch English Français Italiano |
|
<2b31e1343b1f3fadd55ad6b87d879b78@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: 80286 protected mode Date: Thu, 10 Oct 2024 18:38:55 +0000 Organization: Rocksolid Light Message-ID: <2b31e1343b1f3fadd55ad6b87d879b78@www.novabbs.org> References: <2024Oct6.150415@mips.complang.tuwien.ac.at> <memo.20241006163428.19028W@jgd.cix.co.uk> <2024Oct7.093314@mips.complang.tuwien.ac.at> <7c8e5c75ce0f1e7c95ec3ae4bdbc9249@www.novabbs.org> <2024Oct8.092821@mips.complang.tuwien.ac.at> <ve5ek3$2jamt$1@dont-email.me> <ve6gv4$2o2cj$1@dont-email.me> <ve6olo$2pag3$2@dont-email.me> <73e776d6becb377b484c5dcc72b526dc@www.novabbs.org> <ve7sco$31tgt$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="1443145"; mail-complaints-to="usenet@i2pn2.org"; posting-account="o5SwNDfMfYu6Mv4wwLiW6e/jbA93UAdzFodw5PEa6eU"; User-Agent: Rocksolid Light X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Posting-User: cb29269328a20fe5719ed6a1c397e21f651bda71 X-Rslight-Site: $2y$10$RCEZXUq2fGzbehzuRNIVGOVyLib//iKlA195G3CIlCBoym8M/bK/S Bytes: 2851 Lines: 35 On Thu, 10 Oct 2024 6:31:52 +0000, David Brown wrote: > On 09/10/2024 23:37, MitchAlsup1 wrote: >> On Wed, 9 Oct 2024 20:22:16 +0000, David Brown wrote: >> >>> On 09/10/2024 20:10, Thomas Koenig wrote: >>>> David Brown <david.brown@hesbynett.no> schrieb: >>>> >>>>> When would you ever /need/ to compare pointers to different objects? >>>>> For almost all C programmers, the answer is "never". >>>> >>>> Sometimes, it is handy to encode certain conditions in pointers, >>>> rather than having only a valid pointer or NULL. A compiler, >>>> for example, might want to store the fact that an error occurred >>>> while parsing a subexpression as a special pointer constant. >>>> >>>> Compilers often have the unfair advantage, though, that they can >>>> rely on what application programmers cannot, their implementation >>>> details. (Some do not, such as f2c). >>> >>> Standard library authors have the same superpowers, so that they can >>> implement an efficient memmove() even though a pure standard C >>> programmer cannot (other than by simply calling the standard library >>> memmove() function!). >> >> This is more a symptom of bad ISA design/evolution than of libc >> writers needing superpowers. > > No, it is not. It has absolutely /nothing/ to do with the ISA. For example, if ISA contains an MM instruction which is the embodiment of memmove() then absolutely no heroics are needed of desired in the libc call. Thus, it IS a symptom of ISA evolution that one has to rewrite memmove() every time wider SIMD registers are available.