comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Ada Pointer Size Problem
Date: Fri, 22 Oct 2004 12:50:29 -0400
Date: 2004-10-22T12:50:29-04:00	[thread overview]
Message-ID: <pTaed.32304$J16.1880001@news20.bellglobal.com> (raw)
In-Reply-To: <4178d562$0$12438$ba620e4c@news.skynet.be>

Adrien Plisson wrote:

> Martin Krischik wrote:
>> Jeffrey Carter wrote:
>>> Every C I've ever used allowed a pointer or address to be stored in 
>>> an int.
>>
>> Then you have used C only in a very small windows of opportunity. You 
>> have
>> missed the intersting world of the 80286 with it's host of very 
>> interesting
>> memory models.
> 
> in C and C++ on most 32 bits platforms:
> sizeof( void *) == sizeof( long ) == sizeof( int ) == 4
> that's why he is allowed to store pointers in an int. to use 64 bit wide 
> integers, you have to use __int64.
...
> well, we have to get prepared for the future world of 128 bit computing.
> coming sooner or later to a computer near you !

This brings up an interesting point WRT Ada: since much C/C++
code has depended upon this relationship and Ada does not (though
it can be abused). Ada code in this respect at least, should more
easily adapt to platforms with increasing sizes of address spaces.
-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg



  reply	other threads:[~2004-10-22 16:50 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-10 19:50 Ada Pointer Size Problem skidmarks
2004-10-11  1:38 ` Stephen Leake
2004-10-12 18:44   ` skidmarks
2004-10-13  1:23     ` Jeffrey Carter
2004-10-13  8:07     ` Martin Krischik
2004-10-13 16:27     ` Jean-Pierre Rosen
2004-10-11  5:18 ` Jeffrey Carter
2004-10-21  1:16   ` Dave Thompson
2004-10-21  1:56     ` Jeffrey Carter
2004-10-21  9:54       ` Martin Krischik
2004-10-22  1:09         ` Jeffrey Carter
2004-10-22  7:48           ` Martin Krischik
2004-10-22  9:41             ` Adrien Plisson
2004-10-22 16:50               ` Warren W. Gay VE3WWG [this message]
2004-10-24 16:05               ` Martin Krischik
2004-10-23  1:35             ` Jeffrey Carter
2004-10-24 15:52               ` Martin Krischik
2004-10-22  5:41       ` Simon Wright
2004-10-22 18:05       ` Mark Lorenzen
2004-11-01  8:14       ` Dave Thompson
2004-10-11  8:45 ` Martin Krischik
     [not found]   ` <1c2f5137.0410130505.57e03c@posting.google.com>
2004-10-13 13:37     ` Dmitry A. Kazakov
2004-10-14  3:46     ` Steve
replies disabled

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