comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: 64-bit integers in Ada
Date: Wed, 31 Jul 2002 09:42:01 -0400
Date: 2002-07-31T13:42:01+00:00	[thread overview]
Message-ID: <ai8pf9$fip$1@nh.pace.co.uk> (raw)
In-Reply-To: wcc65ywhw3s.fsf@shell01.TheWorld.com

One advantage to insisting that the type Integer supports at least 16 bits
is that it gives the developer some minimal parameters on which to write
software that might rely on the standard type Integer. If you won't
guarantee that the type Integer has some minimal usefulness, then why bother
to have it at all? Most hardware will support 16 bits and even if it doesn't
you might find it difficult to write any useful programs if you can't count
up to at least 32767, so a software simulation is probably necessary.

Is there a case where, for example, it would make any sense at all for an
implementation to *not* give the user 16 bits? Would it ever make sense for
the type Integer to be 8 bits, for example? (Assuming that if I actually
want an 8-bit integer type I can still declare one of my own, that is...)
Would anyone ever really want to build an Ada implementation that had a
maximum integer of something less than 16 bits? If not, then the ARM
specifying support for at least 16 bits is a good thing in terms of giving
the developer a warm fuzzy feeling that he can depend on at least that much.

For what its worth, IIRC, the XD-Ada compiler for the Mil-Std-1750a had 16
bits for the standard type Integer. I don't remember if it allowed
declarations of integers larger than this, but my vague memory was that it
did not. Given the machine architecture and the intended usage, it would not
have been an unreasonable restriction.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com


"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wcc65ywhw3s.fsf@shell01.TheWorld.com...
>
> Actually, Ada requires 16 bit integers (at minimum).
> Robert has argued in the past that this is silly -- too small to be of
> use, and better to let the market decide.  Probably true.
>






  reply	other threads:[~2002-07-31 13:42 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 11:27 64-bit integers in Ada David Rasmussen
2002-05-17  2:28 ` Robert Dewar
2002-05-17 13:56 ` Mark Johnson
2002-07-29 15:33 ` Victor Giddings
2002-07-29 20:15   ` Robert A Duff
2002-07-30 18:35     ` Richard Riehle
2002-07-30 20:20       ` Robert A Duff
2002-07-31  0:13       ` Robert Dewar
2002-07-31  4:17         ` Keith Thompson
2002-07-31  8:41           ` Larry Kilgallen
2002-07-31 13:20           ` Robert A Duff
2002-07-31 13:42             ` Marin David Condic [this message]
2002-08-01  7:54               ` Lutz Donnerhacke
2002-08-01 13:07                 ` Marin David Condic
2002-08-02  7:31                   ` Lutz Donnerhacke
2002-08-02 13:21                     ` Marin David Condic
2002-08-03 12:24                       ` Robert Dewar
2002-08-03 18:59                         ` Richard Riehle
2002-08-04  6:12                           ` Chad R. Meiners
2002-08-04 14:07                           ` Robert Dewar
2002-08-05  2:28                             ` Richard Riehle
2002-08-11 15:32                               ` Simon Wright
2002-08-13 21:14                             ` Randy Brukardt
2002-08-04 18:00                           ` Larry Kilgallen
     [not found]                           ` <5ee5b646.0208040607.ebb6909@posting.googOrganization: LJK Software <PG2KS5+doDWm@eisner.encompasserve.org>
2002-08-05  1:44                             ` Robert Dewar
2002-08-05  1:48                             ` Robert Dewar
2002-08-05 11:40                               ` Marc A. Criley
2002-08-05 14:40                                 ` Pat Rogers
2002-08-05  2:34                             ` Richard Riehle
2002-08-11 21:56                           ` Robert A Duff
2002-08-13 21:09                         ` Randy Brukardt
2002-08-18  1:01                           ` AG
2002-08-20  0:15                             ` Robert Dewar
2002-08-02  8:37                   ` Fraser Wilson
2002-08-02 12:54                   ` Frank J. Lhota
2002-08-01 11:57               ` Larry Kilgallen
2002-08-01 17:53               ` Ben Brosgol
2002-08-01 20:32               ` Keith Thompson
2002-07-31 21:50             ` Keith Thompson
2002-07-31 21:59               ` Robert A Duff
2002-07-30  4:29   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox