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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.telebyte.nl!fr.ip.ndsoftware.net!skynet.be!newspost001!tjb!not-for-mail Date: Fri, 22 Oct 2004 11:41:44 +0200 From: Adrien Plisson Reply-To: aplisson-news@stochastique.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: fr-be, fr, 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> In-Reply-To: <64622873.zC2vBuIgSo@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4178d562$0$12438$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 9e0bf81b.news.skynet.be X-Trace: 1098437986 news.skynet.be 12438 80.200.111.183:11862 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:5625 Date: 2004-10-22T11:41:44+02:00 List-Id: 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. so I don't think he missed the 80286 and its bunch of wonderful memory models... > And you have not yet arrived the great new world of 64 bit computing - where > a pointer is twice the size of an int. well, we have to get prepared for the future world of 128 bit computing. coming sooner or later to a computer near you ! -- rien