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: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Thu, 10 Feb 2011 07:09:15 +0100 Organization: Adalog Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <737a6396-72bd-4a1e-8895-7d50f287960e@d28g2000yqc.googlegroups.com> <4d5008a5$0$6879$9b4e6d93@newsspool2.arcor-online.net> <4d5031fe$0$6765$9b4e6d93@newsspool3.arcor-online.net> <1f229967-d3cf-42b6-8087-c97ee08652f3@i40g2000yqh.googlegroups.com> <4d51169e$0$7657$9b4e6d93@newsspool1.arcor-online.net> <1bnp0pw1c8r5b$.guxc48qweiwe.dlg@40tude.net> <4d51a1c0$0$19486$882e7ee2@usenet-news.net> <87411ec5-c197-4143-8ef1-ab9ddb20bcc6@q40g2000prh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 10 Feb 2011 06:29:55 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="8225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FFwcvpQLM1Jt/vjj4hJiR" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: Cancel-Lock: sha1:IWajJyjXqLLSC26In/lfv57DNVk= Xref: g2news1.google.com comp.lang.ada:17209 Date: 2011-02-10T07:09:15+01:00 List-Id: Le 09/02/2011 23:25, Vinzent Hoefler a écrit : >> No. They are just used to write left to right. > > Yes, but as you probably know, the number system is - arabic and there > the text-direction is "rtl". That's because you are insisting of considering that every machine word is a number. It is not. It just a set of bits. You /can/ interpret this set of a bit as an integer number representation in some cases, as a floating point number (with many variations in representation) in other cases, or as a packed record, an enumeration, or whatever. I don't see any reason why the representation as an integer should impose its requirements to a machine word. > I know. Unfortunately, still some compilers (especially the one we're > using) do not support that. I don't remember the exact error message, > but it was somewhere along the lines of "non-default bit-order not > supported". > Just curious, which one is it? I'm surprised that a compiler is unable to compute 31-N. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a déménagé / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00