comp.lang.ada
 help / color / mirror / Atom feed
From: telesoft!garym@uunet.uu.net  (Gary Morris @pulsar)
Subject: Re: Enumerations
Date: 20 Sep 92 22:32:28 GMT	[thread overview]
Message-ID: <1992Sep20.223228.4176@telesoft.com> (raw)

In <1992Sep19.004035.22312@sei.cmu.edu> Goodenough@sei.cmu.edu (John Goodenough
) writes:
>The one case in which you might expect a compiler to provide a default
>enumeration representation different from that of the position number is for
>the predefined type BOOLEAN.  My understanding is that on some architectures
>it can be more efficient to code FALSE as a negative number (e.g., all ones)
>and TRUE as a non-negative number (e.g., all zeroes).  

This is true on the 68000 family processors, using 0 for false and -1 for
true is more efficient that 0 and 1.  Our current 68020 code generator takes
advantage of this.
--GaryM
-- 
Gary Morris                     Internet: garym@telesoft.com
Ada Software Development        UUCP:     uunet!telesoft!garym
TeleSoft, San Diego, CA         Phone:    +1 619-457-2700

             reply	other threads:[~1992-09-20 22:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-20 22:32 Gary Morris @pulsar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-22 14:27 Enumerations Chris Elliott
1992-09-19  2:31 Enumerations Michael Feldman
1992-09-19  1:18 Enumerations Mark A Biggar
1992-09-19  0:40 Enumerations John Goodenough
1992-09-18 17:54 Enumerations Michael Feldman
1992-09-18 15:41 Enumerations Mark A Biggar
1992-09-18  1:39 Enumerations Michael Feldman
1992-09-17 23:40 Enumerations Kevin Simonson
1992-09-17 22:26 Enumerations Darren Davenport 283-4173
1992-09-17 21:20 Enumerations david.c.willett
replies disabled

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