comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Riehle <richard@adaworks.com>
Subject: Re: 64-bit integers in Ada
Date: Sat, 03 Aug 2002 11:59:17 -0700
Date: 2002-08-03T18:54:47+00:00	[thread overview]
Message-ID: <3D4C2805.62563584@adaworks.com> (raw)
In-Reply-To: 5ee5b646.0208030424.39703482@posting.google.com

Robert Dewar wrote:

> As for implementations for 8-bit micros, I would still make
> Integer 32 bits on such a target.

I assume you are talking about Standard.Integer.   If so, this
would not correspond to the way software is so frequently
written for these machines.   In particular, for I-8051
platforms, it would introduce a potential inefficiency and
force the programmer to explicitly declare a shorter
integer (absent the availability of Standard.Short_Integer).

Since we often counsel designers to specify their own numeric
types anyway, this is probably not a hardship, but it could
be troublesome for an experienced I-8051 programmer who
expects 16 bit integers.   Consider, for example, that simply
pushing a 16 bit entity on the stack requires storing two
eight-bit stack entries.   To store a 32-bit integer would
take four stack entries.   The corresponding inefficiency
would be intolerable for most I-8051 applications.

One reason I like Ada is because we can define our own
numeric types.  Though there are few machines still extant
that use storage multiples of other than eight-bits,  they
do still exist.   I think the compiler for the Unisys 11xx
series has a word size of 36 bits.  Randy can correct me
on that if I am wrong.

> Anyway, I see no reason for the standard to essentially encourage
> inappropriate choices for integer types by adding a requirement that
> has no practical significance whatever.

I completely agree with you on this point.  The designer should make
the decision based on the architecture of the targeted platform and
the application requirements.  The language should be, as Ada is,
flexible enough to give the designer this level of support.

Don Reifer recently told me that one reason Ada was becoming
irrelevant, and his reason for recommending against its use for
new projects, was that it is not sufficiently flexible to support
the new kinds of architectures in the pipeline.   Though I disagree
with him on this assessment,  forcing the language to correspond
to a single word-size architecture (read 32 bits) would be
play into his flawed view of Ada's value for new software.

Richard Riehle




  reply	other threads:[~2002-08-03 18:59 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
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 [this message]
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