comp.lang.ada
 help / color / mirror / Atom feed
From: gdemont@my-deja.com
Subject: Re: Bit manipulation
Date: 2000/11/09
Date: 2000-11-09T00:00:00+00:00	[thread overview]
Message-ID: <8ue031$gh7$1@nnrp1.deja.com> (raw)
In-Reply-To: 8udr5g$d6t$1@nnrp1.deja.com

Sandro Binetti:

> There are, IMHO, two different languages:
> 1) the language used by hardware engineers
> 2) the (O.O.) programming languages used by the software developpers
> that should use the hardware devices sub 1)

> The language sub 1) is, quite often, bit-manipulation oriented (mask
> the 4 MSB to obtain XXX, shift twice leftmost in the register YYY to
> set the device status in ZZZ mode, and so on ...)
>
> The language sub 2), say ADA, has to make an abstraction of these
> hardware specifications, or, simply, use them?

The 1)-2) hiatus is very classic because older languages did fit only
for a part of computing (C for bits, Fortran for maths, Pascal for
abstraction).
The good news is that Ada covers 1) as well as 2). In addition, IHMO
Ada95 offers more powerful (read: precise) tools for 1) than C, e.g. .

> Is it correct, in a teamwork made of a lot of engineers and programmers
> that exchange documentation each other, arbitrarily "upset" a bit-
> oriented specification, given as a starting point for a subsequent
> software developement, in order to "match" ADA high-level point of
> view?

Ideally the "low-level" engineers write their hardware/IO packages in
Ada, the "high-level" ones write their maths, OO etc. in other packages
also in Ada. Finally a "gnatmake the_big_project" to build the whole.

In a funny domain you can see in my 3D sources (URL below - and sorry
for the auto-advertisement...) an example of project where Ada covers
all levels: (1) reprogramming keyboard interrupt, timer interrupt,
drawing pixels for textured objects with heavy use of bit masking and
shifting, (2) rendering, rotations, projections, management of
"universes" and even (3) organizing interactive scenes (at this stage
the Ada source ressembles to a script) and manipulating 3D models
directly stored in large Ada constant arrays (instead of loading a
VRML).

The modularity of Ada allows to combine all levels quite easily.

____________________________________________________
Gautier  --  http://members.nbci.com/gdemont/e3d.htm


Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-11-09  0:00 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-07  0:00 Bit manipulation Sandro Binetti
2000-11-07  0:00 ` gdemont
2000-11-08  7:22   ` Sandro Binetti
2000-11-07  0:00 ` Larry Kilgallen
2000-11-07  0:00   ` John English
2000-11-08  0:00   ` gdemont
2000-11-08  0:00     ` Robert Dewar
2000-11-08  0:00       ` gdemont
2000-11-08  0:00         ` Larry Kilgallen
2000-11-09  4:50           ` Robert Dewar
2000-11-10  0:00             ` Lao Xiao Hai
2000-11-09  4:47         ` Robert Dewar
2000-11-09  0:00           ` gdemont
2000-11-08  0:00       ` Sandro Binetti
2000-11-08  0:00         ` Dale Stanbrough
2000-11-09  0:00           ` Sandro Binetti
2000-11-09  0:00             ` Ken Garlington
2000-11-09  0:00             ` gdemont [this message]
2000-11-10  0:00             ` Scott Ingram
2000-11-08  0:00         ` Nicolas Brunot
2000-11-08  0:00         ` gdemont
2000-11-09  4:00           ` Ken Garlington
2000-11-09  0:00             ` Larry Kilgallen
2000-11-09  0:00               ` Ken Garlington
2000-11-09  3:59         ` Ken Garlington
2000-11-09  4:52         ` Robert Dewar
2000-11-11  0:00       ` Redryder
2000-11-11  0:00         ` Jeff Carter
2000-11-11  0:00           ` Redryder
2000-11-12  2:07             ` Ken Garlington
2000-11-12  5:56             ` Jeff Carter
2000-11-12  0:00               ` Robert Dewar
2000-11-12  0:00                 ` tmoran
2000-11-13  0:00                   ` Robert Dewar
2000-11-14  0:00                     ` Marc A. Criley
2000-11-13  0:54                   ` Ken Garlington
2000-11-12  6:40               ` tmoran
2000-11-13  0:00         ` Lutz Donnerhacke
2000-11-13  0:00           ` Robert Dewar
2000-11-13  0:00             ` Lutz Donnerhacke
2000-11-13  0:00               ` Robert Dewar
2000-11-13  0:00                 ` Lutz Donnerhacke
2000-11-13  0:00           ` Robert Dewar
2000-11-13  0:00             ` Lutz Donnerhacke
2000-11-13  0:00               ` Robert Dewar
2000-11-13  0:00                 ` Lutz Donnerhacke
2000-11-13  0:00                   ` Pat Rogers
2000-11-13  0:00                     ` Brian Rogoff
2000-11-13  0:00                       ` Pat Rogers
2000-11-13  0:00                       ` F. Britt Snodgrass
2000-11-15  0:00                         ` Lutz Donnerhacke
2000-11-14  0:00                       ` Georg Bauhaus
2000-11-15  0:00                         ` Lutz Donnerhacke
2000-11-14  0:00                   ` Martin Dowie
2000-11-15  0:00                     ` Lutz Donnerhacke
2000-11-20  0:00                 ` Randy Brukardt
2000-11-21  0:00                   ` Lutz Donnerhacke
2000-11-21  0:00                     ` Stephen Leake
2000-11-22  0:00                       ` Lutz Donnerhacke
2000-11-08  7:18   ` Sandro Binetti
2000-11-10  7:24 ` Thank you all for your contribution ! Sandro Binetti
  -- strict thread matches above, loose matches on Subject: below --
2005-02-07 12:37 Bit manipulation Maurizio
2005-02-07 13:20 ` Martin Krischik
2005-02-07 15:32 ` Martin Dowie
2005-02-07 18:04   ` Martin Krischik
2005-02-08  0:32 ` Randy Brukardt
2005-02-08  3:11 ` Steve
2005-02-08 18:51   ` tmoran
1999-04-04  0:00 bit manipulation Jack Chow
1999-04-04  0:00 ` Matthew Heaney
1999-04-05  0:00 ` 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