From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b65fc33a05f24b6 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!o2g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: A curiosity... Date: Thu, 4 Dec 2008 14:10:18 -0800 (PST) Organization: http://groups.google.com Message-ID: <396044ea-4c37-4923-b989-eb4af2202bd3@o2g2000yqd.googlegroups.com> References: <0f009ce8-0f50-4b85-9368-0d0c68f42da1@w34g2000yqm.googlegroups.com> NNTP-Posting-Host: 94.108.135.128 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1228428619 30949 127.0.0.1 (4 Dec 2008 22:10:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 4 Dec 2008 22:10:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o2g2000yqd.googlegroups.com; posting-host=94.108.135.128; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.17) Gecko/20080829 Iceape/1.1.12 (Debian-1.1.12-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3848 Date: 2008-12-04T14:10:18-08:00 List-Id: Ludovic Brenta wrote: > Yes. In fact, C requires that pointers and integers be interchangable > so as to make address arithmetic "transparent" and extremely > dangerous. That's why, instead of writing "&th[t]" as Adam did, they > wrote "th+t" and thought themselves clever. And I think this rule is responsible for the "limitation" that all current processor architectures use addresses which are the same size as integers. Before the advent of C, address size and word size were not necessarily the same; now they always are, and that's *only* for compatibility with C. Nowadays, computers are moving towards non-uniform memory architectures (e.g. main memory, video memory, network interface cache memory, physics processor memory, etc.) which would map extremely well to Ada's storage pools and very poorly with C's pointer arithmetic. -- Ludovic Brenta.