comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: A curiosity...
Date: Thu, 04 Dec 2008 17:24:00 -0500
Date: 2008-12-04T17:24:00-05:00	[thread overview]
Message-ID: <4MYZk.14365$M33.3189@newsfe03.iad> (raw)
In-Reply-To: <396044ea-4c37-4923-b989-eb4af2202bd3@o2g2000yqd.googlegroups.com>

Ludovic Brenta wrote:
> 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.

No such limitation exists. In fact, for many years C compilers on the
Intel x86 architecture used 16-bit integers and 32-bit pointers.

> map extremely well to Ada's storage pools and very poorly with C's
 > pointer arithmetic.

C's pointer arithmetic exists only within the confines of a single
array. Unless your Ada storage pools are planning to allocate single
objects with memory spanning separate devices, C's pointer arithmetic
model will be just fine.



  reply	other threads:[~2008-12-04 22:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 20:47 A curiosity mockturtle
2008-12-04 21:17 ` Adam Beneschan
2008-12-04 21:48   ` Hyman Rosen
2008-12-04 22:04     ` Ludovic Brenta
2008-12-04 22:10       ` Ludovic Brenta
2008-12-04 22:24         ` Hyman Rosen [this message]
2008-12-05  8:02         ` Samuel Tardieu
2008-12-05 11:51           ` Peter C. Chapin
2008-12-05 13:09           ` Martin Krischik
2008-12-05 15:15             ` Hyman Rosen
2008-12-06 13:26             ` Peter C. Chapin
2008-12-05 16:37           ` Keith Thompson
2008-12-04 22:19       ` Hyman Rosen
2008-12-05  9:03       ` Georg Bauhaus
2008-12-04 22:30 ` Randy Brukardt
2008-12-04 22:57   ` Hyman Rosen
2008-12-05 16:42     ` Keith Thompson
2008-12-05 16:57       ` Hyman Rosen
2008-12-05 20:20         ` Keith Thompson
2008-12-05 20:59           ` Adam Beneschan
2008-12-06 22:53             ` Hyman Rosen
2008-12-06 23:15               ` Gary Scott
2008-12-08 15:39                 ` Hyman Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox