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,61006929d3e14455 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Pointer Size Problem References: <35f054ea.0410101150.25bec2f5@posting.google.com> <6Joad.8869$UP1.8086@newsread1.news.pas.earthlink.net> <3606460.DgU2jkzDGy@linux1.krischik.com> <64622873.zC2vBuIgSo@linux1.krischik.com> <4178d562$0$12438$ba620e4c@news.skynet.be> In-Reply-To: <4178d562$0$12438$ba620e4c@news.skynet.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 22 Oct 2004 12:50:29 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1098463829 198.96.223.163 (Fri, 22 Oct 2004 12:50:29 EDT) NNTP-Posting-Date: Fri, 22 Oct 2004 12:50:29 EDT Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:5644 Date: 2004-10-22T12:50:29-04:00 List-Id: 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