Deutsch English Français Italiano |
<v16jld$1fjrg$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.arch Subject: Re: Byte Addressability And Beyond Date: Sun, 5 May 2024 00:25:17 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: <v16jld$1fjrg$3@dont-email.me> References: <v0s17o$2okf4$2@dont-email.me> <v0snlh$30rmc$2@dont-email.me> <v0u95n$1oje$1@gal.iecc.com> <20240502135432.00007875@yahoo.com> <v0vv98$12om$2@gal.iecc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 05 May 2024 02:25:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="33a041cd80492abf930d5e0c5f5526b9"; logging-data="1560432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tpDC6SLm31Z5tOJAOdNJ+" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:JXcy6VIMUPzxrJqB9FPw4QDW1RQ= Bytes: 1673 On Thu, 2 May 2024 12:00:40 -0000 (UTC), John Levine wrote: > ... it is easy to construct examples that appear to make your less > favored option look wrong ... Here is the issue: we have three different quantities needing numbering. * Bit places within an integer * Bit numbers within a bit field * Byte numbers within a multibyte integer (offsets from the base address) In little-endian, it is easy to relate all these three as follows: bit place within integer = bit number within bit field = byte number * 8 + bit within byte There is no correspondingly simple formula for any big-endian architecture.