From: gisle@lunde.ii.uib.no (Gisle S�lensminde)
Subject: Re: Why should hackers love Ada. (Re: Ada 95 based RTOS)
Date: 2000/02/24
Date: 2000-02-24T00:00:00+00:00 [thread overview]
Message-ID: <slrn8ba0o7.h62.gisle@lunde.ii.uib.no> (raw)
In-Reply-To: 38B47521.1A80B6A1@lmtas.lmco.com
In article <38B47521.1A80B6A1@lmtas.lmco.com>, Gary wrote:
>Hi,
>
>"Marin D. Condic" wrote:
>
>> Ehud Lamm wrote:
>> >
>> In some ways, you'd think "hackers" should be fascinated with Ada. It
>> provides all sorts of facilities to do bit-twiddling and low level
>> access to the hardware.
>
>I see this reference to ADA being good at bit twiddling, periodically.
>Virtually all high-level languages provide facilities for bit twiddling. Is
>there something unique about ADA (I'm a non-ADA programmers, sorry). Is this
>a reference to a transfer function (other languages have this) or memory
>aliasing tricks?
>
Because Ada heve some good methods for lowlevel access to hardware, and
this includes bit twidling. Some bit operations are:
- Bitwise logical operators for modular types, and in the package interfaces
there is operators for bitwise shift and rotatate.
- Packed arrays of boolean(and other types). Yoy can declare an array of
booleans, where each element corresponds to one bit. A 32-bit array of
packed booleans fits in one word on a 32-bit computer.
- The compiler knows whether the target is a big endian or a little endian
architecture, and you have tests to find it out, which can be used in code
to make it portible.
- Representation clauses in records, so you can control where
"the bits goes" in a record.
--
Gisle S�lensminde ( gisle@ii.uib.no )
ln -s /dev/null ~/.netscape/cookies
next prev parent reply other threads:[~2000-02-24 0:00 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-18 0:00 Ada 95 based RTOS xaplos
2000-02-18 0:00 ` Tucker Taft
2000-02-21 0:00 ` xaplos
2000-02-22 0:00 ` Matthew Majka
2000-02-22 0:00 ` xaplos
2000-02-22 0:00 ` Ted Dennison
2000-02-22 0:00 ` xaplos
2000-02-23 0:00 ` Roger Racine
2000-02-24 0:00 ` Simon Wright
2000-02-24 0:00 ` Robert Dewar
2000-02-25 0:00 ` Mike Silva
2000-02-26 0:00 ` xaplos
2000-02-22 0:00 ` Stanley R. Allen
2000-02-22 0:00 ` Marin D. Condic
2000-02-23 0:00 ` Tarjei T. Jensen
2000-02-23 0:00 ` Ted Dennison
2000-02-25 0:00 ` Scott Ingram
2000-02-23 0:00 ` Gautier
2000-02-23 0:00 ` Ehud Lamm
2000-02-23 0:00 ` Why should hackers love Ada. (Re: Ada 95 based RTOS) Marin D. Condic
2000-02-23 0:00 ` Vladimir Olensky
2000-02-23 0:00 ` Gautier
2000-02-24 0:00 ` Ehud Lamm
2000-02-24 0:00 ` David C. Hoos, Sr.
2000-02-24 0:00 ` Vladimir Olensky
2000-02-23 0:00 ` Gary
2000-02-24 0:00 ` Gisle S�lensminde [this message]
2000-02-24 0:00 ` Marin D. Condic
2000-02-24 0:00 ` Larry Kilgallen
2000-02-25 0:00 ` Gary Scott
2000-02-25 0:00 ` Mike Silva
2000-02-26 0:00 ` Gary Scott
2000-02-25 0:00 ` Marin D. Condic
2000-02-25 0:00 ` Gary
2000-02-26 0:00 ` Robert Dewar
2000-02-26 0:00 ` Gary Scott
2000-03-07 0:00 ` Mike Dimmick
2000-03-10 0:00 ` Wil
2000-03-10 0:00 ` Ada OS again " David Starner
2000-03-11 0:00 ` David Botton
2000-02-24 0:00 ` Ehud Lamm
2000-02-24 0:00 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox