From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8309f2bc055237c4 X-Google-Attributes: gid103376,public From: Sandro Binetti Subject: Re: Bit manipulation Date: 2000/11/09 Message-ID: <8udr5g$d6t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 691544275 References: <8u8v6n$b7o$1@nnrp1.deja.com> <2WTH$pdrCfOd@eisner.decus.org> <8ub6kt$6nd$1@nnrp1.deja.com> <8ubeq8$cgm$1@nnrp1.deja.com> <8ubld2$hdd$1@nnrp1.deja.com> X-Http-Proxy: 1.0 ssi21:3128 (Squid/2.3.STABLE4), 1.0 x62.deja.com:80 (Squid/1.1.22) for client 172.27.66.83, 195.223.220.65 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 09 09:35:44 2000 GMT X-MyDeja-Info: XMYDJUIDsandrobinetti Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Date: 2000-11-09T00:00:00+00:00 List-Id: In article , Dale Stanbrough wrote: > > The answer to the first argument is that you use C to call Unix routines > because either [ ... snip ...] OK! You're quite right! This first case is meaningless. > > The second argument, that you -have- to use low level manipulation > in C, is not supported by any examples. 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? 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? Of course, a correctly analized problem has to be faced in a "high- level" way, this is the case of certain kind of systems developped inside the O.O. paradigm constraints. But, how to face a low-level explained problem? Using a low-level language? -- Ciao, Sandro Sent via Deja.com http://www.deja.com/ Before you buy.