comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: 64-bit integers in Ada
Date: 30 Jul 2002 17:13:17 -0700
Date: 2002-07-31T00:13:17+00:00	[thread overview]
Message-ID: <5ee5b646.0207301613.5b59616c@posting.google.com> (raw)
In-Reply-To: 3D46DC69.7C291297@adaworks.com

Richard Riehle <richard@adaworks.com> wrote in message news:<3D46DC69.7C291297@adaworks.com>...
> Robert,
> 
> We still have quite a few embedded platforms for which 64 bit
> integers are not supported. 

There is no reason for hardware support here, even the ia32
does not have hardware support, but 64-bit integers are
very useful and must be supported, just as floating-point
MUST be supported even on processors with no floating-point.

>  We would like to be able to use
> Ada 95 for them, so a requirement for a language feature that
> is not supported would be meaningless.

gcc supports 64-bit integers on virtually all processors
including 8-bit microprocessors.

> Also, there has been
> some discussion, in the past, about support for eight-bit
> microcontrollers such as the I-8051 family.   I am sure 
> some compiler developer would find it very entertaining 
> to design an Ada compiler with 8051 64 bit integers,

Not so much entertaining, but rather quite straightforward.

> but also  quite useless.

Not at all! If your application requires 64-bit integers,
e.g. long durations measured in nanoseconds, then you have
to have this facility, and it is far better that it be
provided by the compiler, rather than having to cook up some half
baked software multiple precision support which
is likely to be FAR less efficient, and certainly far less
convenient.

Once again, in a language which requires all implementations to
provide floating-point, it seems a trivial additional effort to
provide 64-bit integer support.

Note that if anyone bothers to port GNAT to an 8-bit microprocessor
currently supported by GCC, then the 64-bit integer support will come
for free.

> Richard Riehle



  parent reply	other threads:[~2002-07-31  0:13 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 [this message]
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
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