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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,826cd690cb6a7585 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Address and bit mask Date: Mon, 29 Aug 2011 21:41:32 +0200 Organization: A noiseless patient Spider Message-ID: <87fwkk0zv7.fsf@ludovic-brenta.org> References: <71159ccc-bf20-4fcf-a7f1-3b90629c1ecb@l4g2000vbv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="2PP4nIaYr8thlgdQ/ma3Kg"; logging-data="4888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+auiFXalOWan/QoUlW+FSa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:4tSAS0O7topvN1/tj6KZhmuT4Oo= sha1:IuieheDcXd6tZxntG3rGb5D2xHA= Xref: g2news2.google.com comp.lang.ada:21695 Date: 2011-08-29T21:41:32+02:00 List-Id: milouz writes: > How do you make a binary operation (and, or, etc.) in Ada on an > Address type in a rather portable way ? You don't. Addresses are not portable at all, not even "rather". I'm curious. Why do you need bitwise operations on addresses? I did a lot of *eminently non-portable* bitwise operations on addresses when I worked in avionics, so I know when to do them and when not to. For the curious, the operations were in the low-level device driver for a FLASH device, and in a bootloader. -- Ludovic Brenta.