comp.lang.ada
 help / color / mirror / Atom feed
From: rieachus@comcast.net
Subject: Re: Ada.Strings.Fixed.Count raises Storage_Error
Date: Fri, 1 Jul 2016 05:17:40 -0700 (PDT)
Date: 2016-07-01T05:17:40-07:00	[thread overview]
Message-ID: <a772b194-e98e-4d7d-883b-973f2a63143f@googlegroups.com> (raw)
In-Reply-To: <nl5i7k$oql$1@dont-email.me>

On Friday, July 1, 2016 at 6:55:50 AM UTC-4, J-P. Rosen wrote:

> I don't remember anything like that.

Different hat. (Management)  When Ada (80) was new, it was just assumed that minicomputers and PCs would have a 16-bit Integer type.  Then it turned out that Ada compilers couldn't really fit in a machine with too limited an address space.  So those of us who worked for hardware companies had to do the soul searching about which hardware compilers needed to run on, and which targets could be included.  The choice between 16-bit and 32-bit Integer types was possibly just a symptom, but by 1984 it was pretty much in the rear view mirror.  No one really wanted to buy compilers where Integer was 16-bits, even for the (MIL STD) 1750A.
 
>                                       And there is no problem for
> generating correct code for a loop that spans over all values of a type,
> you just have to exit in the middle - without efficiency penalty.

You have a different definition of efficiency than I do.  On a modern processor I want to be able to execute tight loops in one clock cycle per iteration.  This usually requires three or more instructions that can be executed in parallel.  The efficient workaround is to have a single loop iteration before the actual loop code.  The better way is just to run the loop in a 64-bit register if that is an option. ;-)


  reply	other threads:[~2016-07-01 12:17 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12 11:36 Ada.Strings.Fixed.Count raises Storage_Error Xavier Petit
2016-05-12 15:22 ` Tero Koskinen
2016-05-12 22:05 ` Georg Bauhaus
2016-06-26 21:18   ` Victor Porton
2016-06-26 23:23     ` rieachus
2016-06-27  0:21       ` Jeffrey R. Carter
2016-06-27  4:00         ` rieachus
2016-06-27  0:51       ` Xavier Petit
2016-06-27  4:48         ` rieachus
2016-06-28 18:25           ` Xavier Petit
2016-06-29 18:49           ` Niklas Holsti
2016-06-29 19:40             ` Jeffrey R. Carter
2016-06-29 19:57             ` Dmitry A. Kazakov
2016-07-01 11:48               ` rieachus
2016-07-01 13:08                 ` Dmitry A. Kazakov
2016-06-27  8:29       ` Simon Wright
2016-06-27  8:41         ` Georg Bauhaus
2016-06-29  8:15       ` Niklas Holsti
2016-06-29  9:13         ` J-P. Rosen
2016-06-29 17:43           ` Niklas Holsti
2016-06-29 18:19             ` J-P. Rosen
2016-06-29 20:30             ` Robert A Duff
2016-06-30  5:38               ` Niklas Holsti
2016-07-01 10:40                 ` rieachus
2016-07-01 10:55                   ` J-P. Rosen
2016-07-01 12:17                     ` rieachus [this message]
2016-07-01 12:55                       ` G.B.
2016-06-27 12:52     ` Victor Porton
2016-05-12 22:56 ` Randy Brukardt
replies disabled

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