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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4751d44ff54a2c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-17 06:56:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CE50C1D.1E4AE800@raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: 64-bit integers in Ada References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 17 May 2002 08:56:45 -0500 NNTP-Posting-Host: 192.27.48.39 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1021643815 192.27.48.39 (Fri, 17 May 2002 08:56:55 CDT) NNTP-Posting-Date: Fri, 17 May 2002 08:56:55 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:24266 Date: 2002-05-17T08:56:45-05:00 List-Id: David Rasmussen wrote: > > I understand that I can easily use an integer in Ada that has exactly 64 > bits. But are there any guarantees that such a type would be mapped to > native integers on 64-bit machines or to a reasonable double 32-bit > implementation on 32-bit machines? No. However... > At least, are compilers ok at this in > real life? > Yes. Robert mentions GNAT, but you will have to review the technical information for your compiler [or test it] to be sure. Generally, if the compiler doesn't reject the construct, it will implement it correctly. --Mark