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-07-29 08:34:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!jfk3-feed1.news.algx.net!dca1-feed1.news.algx.net!allegiance!dca1-nnrp2.news.algx.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: 64-bit integers in Ada From: Victor Giddings References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> Organization: Objective Interface System Message-ID: User-Agent: Xnews/5.04.25 Date: Mon, 29 Jul 2002 15:33:22 GMT NNTP-Posting-Host: 216.5.244.20 X-Complaints-To: abuse@algx.net X-Trace: dca1-nnrp2.news.algx.net 1027956802 216.5.244.20 (Mon, 29 Jul 2002 11:33:22 EDT) NNTP-Posting-Date: Mon, 29 Jul 2002 11:33:22 EDT Xref: archiver1.google.com comp.lang.ada:27452 Date: 2002-07-29T15:33:22+00:00 List-Id: David Rasmussen wrote in 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 > Try using (or deriving from) Interfaces.Integer_64 or Integer.Unsigned_64. Admittedly, this requires 2 steps on the part of the compiler developer. 1) actually support the 64-bit integer type. 2) to put it in Interfaces (as required by B.2(7)). However, we rely on this in our CORBA product implementation and have been making sure that the compiler vendors are adding these types when they are supported. As of now, I know of only one compiler that supports 64-bit integers and doesn't define Interface.Integer_64. That is to be remedied very soon. -- Victor Giddings mailto:victor.giddings@ois.com Senior Product Engineer +1 703 295 6500 Objective Interface Systems Fax: +1 703 295 6501