Deutsch English Français Italiano |
<v18kqa$r0h$1@gal.iecc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: alignment, Byte Addressability And Beyond Date: Sun, 5 May 2024 18:57:14 -0000 (UTC) Organization: Taughannock Networks Message-ID: <v18kqa$r0h$1@gal.iecc.com> References: <v0s17o$2okf4$2@dont-email.me> <v13olm$p9ih$9@dont-email.me> <2024May4.111127@mips.complang.tuwien.ac.at> <v181u5$1s4au$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 5 May 2024 18:57:14 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="27665"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <v0s17o$2okf4$2@dont-email.me> <v13olm$p9ih$9@dont-email.me> <2024May4.111127@mips.complang.tuwien.ac.at> <v181u5$1s4au$1@dont-email.me> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine) Bytes: 2224 Lines: 22 According to Robert Swindells <rjs@fdy2.co.uk>: >On Sat, 04 May 2024 09:11:27 GMT, Anton Ertl wrote: >On a byte-addressed machine you can use some lower bits "for free" if >the objects being addressed are always word-sized or larger. SPARC has >specific instructions to make use of this. Only if you can count on them being aligned. On S/360 they required everything to be aligned, and one of the changes on S/370 was to allow arbitrary data alignment for data addresses. They quickly found that Fortran programs used COMMON and EQUIVALENCE to put 8 bit reals on 4 byte boundaries in strictly standard conforming programs. Oops. The Fortran library caught the traps and fixed them up but with dreadful performance. If your storage management is disciplined enough that you know that everything is aligned on natural boundaries, this trick still works, but if you're going to have to mask out flag bits anyway, the argument for putting the flags in the low bits isn't as strong. -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly