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.2 required=5.0 tests=BAYES_00,FROM_WORDY, INVALID_MSGID 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: "Ken Garlington" Subject: Re: Bit manipulation Date: 2000/11/09 Message-ID: #1/1 X-Deja-AN: 691625612 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> <8ubsdm$nef$1@nnrp1.deja.com> <4bHjnjxVodhb@eisner.decus.org> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 973780278 216.215.73.83 (Thu, 09 Nov 2000 08:31:18 CST) Organization: FlashNet Communications, http://www.flash.net X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 09 Nov 2000 08:31:18 CST Newsgroups: comp.lang.ada Date: 2000-11-09T00:00:00+00:00 List-Id: "Larry Kilgallen" wrote in message news:4bHjnjxVodhb@eisner.decus.org... : In article , "Ken Garlington" writes: : > : Ada83: for certain things like bit manipulations, you have to : > : use compiler-dependent libraries or interface with bits : > : of code in C. : > : > I've done huge numbers of bit manipulations in Ada83 without doing either of : > these options. : : Perhaps what you have written would not be portable to another compiler. : Perhaps that is immaterial in your problem domain. It is in one of mine. So far, it's survived five compilers (TeleSoft, Tartan, Alsys, Green Hills, Texas Instruments) and four processors (1750, 80x86, PowerPC, C67) with little or no modifications required - see, for example: http://www.lmaeronautics.com/news/press/jsf/jsfpr000531.html See also the C_Coder_Test procedure I posted elsewhere in this thread, which does (unncessary) bit masking, etc. It should work on just about any compiler (Ada83 or Ada95), as far as I know.