Article View: comp.lang.c.moderated
Article #2488Re: Efficiency Question : bits vs. bytes (or anything else, for that matter)
From: Konrad Schwarz
Date: Thu, 04 Apr 1996 00:58
Date: Thu, 04 Apr 1996 00:58
20 lines
1577 bytes
1577 bytes
In article <4jr74b$h95@solutions.solon.com>, ok@cs.rmit.edu.au (Richard A. O'Keefe) writes: [catches my error] Just checking if you're all awake! :) |> >Furthermore, in yesterdays posting making the size of the cell sizeof (unsigned) |> >is arbitrary; in particular, it has nothing to do with the fact that the |> >type of the bitfield is unsigned. In the environment I am currently |> >computing in, a cell size of sizeof (void *) would be more likely to make |> >the cell size equal to the machine word length. |> |> There are machines in which sizeof (void *) greatly exceeds the size of |> any integral type. Rumour has it that the AS/400 uses pointers of length 128 bytes, which contain not only addressing information but capabilities as well. How is C implemented on such a machine, in particular, how are pointers or arrays implemented? (If the full 128 bytes are accessed for every pointer and there is no such integral type, it must be fantastically slow.) Konrad Schwarz
Technical Details
Message-ID:
<4jv6qt$cqk@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4jbciv$2kk@solutions.solon.com> <4jckmc$9v7@solutions.solon.com> <4je1p1$g1s@solutions.solon.com> <4jr74b$h95@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: schwarz@mips.complang.tuwien.ac.at (Konrad Schwarz) Newsgroups: comp.lang.c.moderated Subject: Re: Efficiency Question : bits vs. bytes (or anything else, for that matter) Date: 3 Apr 1996 18:58:05 -0600 Organization: TU Wien Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4jv6qt$cqk@solutions.solon.com> References: <4jbciv$2kk@solutions.solon.com> <4jckmc$9v7@solutions.solon.com> <4je1p1$g1s@solutions.solon.com> <4jr74b$h95@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com