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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,4751d44ff54a2c2c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-01 22:21:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: 64-bit integers in Ada Date: Thu, 1 Aug 2002 09:07:54 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CE3978F.6070704@gmx.spam.egg.sausage.and.spam.net> <3D46DC69.7C291297@adaworks.com> <5ee5b646.0207301613.5b59616c@posting.google.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1028207272 4686 136.170.200.133 (1 Aug 2002 13:07:52 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 1 Aug 2002 13:07:52 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:27599 Date: 2002-08-01T13:07:52+00:00 List-Id: Its been a while since I've seen a C compiler for a 6502, but my recollection is that the last one I did look at had 16 bits for the type int. Please correct me if I'm wrong here - have you seen C compilers for this target using 8 bits for the type int? My thinking here is that even for guys programming small computers, an int or Integer being required to support at least 16 bits, is a useful constraint even if it has to be simulated with software. Guys programming 6502's still need to frequently count things well above +/-128 and int or Integer are the customary, handy counter that you'd like to have some asurance will accommodate some useful range. That's why I wouldn't object to the standard requiring that an implementation support at least 16 bits - even for small machines. People expect it. Going the other direction (requiring support for 64 bits or 128 bits or unlimited bits) is a different situation in that this might become an unreasonable burden on a compiler for a small target. (I'd certainly consider it desirable that it be "permissable" - just not "required") MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Lutz Donnerhacke" wrote in message news:slrnakhqa5.ok.lutz@taranis.iks-jena.de... > > Integer ist expected to be the size of the maschine word. Now choose a 6502 > or similar �P. If you need a certain range of countable numbers, define your > own type. But do not insist on types the maschine can not handle efficiently. > Ada requires native support for all native maschine types anyway.