comp.lang.ada
 help / color / mirror / Atom feed
From: telesoft!garym@uunet.uu.net  (Gary Morris @ignite)
Subject: Re: Forcing default representations
Date: 23 Jul 93 19:15:47 GMT	[thread overview]
Message-ID: <1993Jul23.191547.21281@alsys.com> (raw)

In <9307221834.AA03070@eight-ball.boeing.com> crispen@eight-ball.boeing.com (Bo
b Crispen) writes:
>By the way, here's a semi-trivial question:  Does anyone know of
>a real Ada compiler that doesn't assign internal values of integers
>(forget the size for a minute) beginning with zero as a default for
>enumerations?  

I suspect all compilers would assign internal values that match the
position number, doing something different would impact the performance
of the 'pos operation since the position number is required to start at
zero (LRM 3.5.1 p4).

The only exception I've ever seen was a TeleSoft compiler that used internal
values of 0 and -1 for Boolean, with the corresponding position numbers of 0
and 1.  This was for a MC680X0 processor and boolean operations were more
efficient by making True have an internal value of -1. 

--GaryM
-- 
Gary Morris                      Internet: garym@alsys.com
TeleUSE/Ada Development          UUCP:     uunet!alsys.com!garym
Alsys Inc. (TeleSoft)            Phone:    +1 619-457-2700 x128
San Diego, CA, USA               Fax:      +1 619-452-1334

             reply	other threads:[~1993-07-23 19:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-23 19:15 Gary Morris @ignite [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-30 12:00 Forcing default representations Bob Gilbert
1993-07-30  1:15 pipex!warwick!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!epflnews!di
1993-07-26 18:30 Robert I. Eachus
1993-07-26 15:12 agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.ans.net!newsgate.watson.ibm.com!yktnews.watson.ibm.com!ncohen
1993-07-24 21:16 Erik Magnuson
1993-07-24 17:13 pipex!sunic!news.funet.fi!funic!news.eunet.fi!prime!mits!rkaivola
1993-07-22 18:34 Bob Crispen
1993-07-20 12:57 Bob Crispen
1993-07-19 16:56 Adam Beneschan
1993-07-16 22:26 dog.ee.lbl.gov!overload.lbl.gov!agate!howland.reston.ans.net!noc.near.net
1993-07-13 19:22 crispen
replies disabled

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