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-16 19:28:01 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: 64-bit integers in Ada Date: 16 May 2002 19:28:01 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205161828.33e794ee@posting.google.com> References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021602481 7311 127.0.0.1 (17 May 2002 02:28:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 May 2002 02:28:01 GMT Xref: archiver1.google.com comp.lang.ada:24246 Date: 2002-05-17T02:28:01+00:00 List-Id: David Rasmussen wrote in message news:<3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net>... > 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? At least, are compilers ok at this in > real life? > > /David You have to check the particular compiler. GNAT supports 64-bit arithmetic on all targets, using whatever is appropriate efficient code to do so.