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_LOCAL_HEX, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Vinzent Hoefler" <0439279208b62c95f1880bf0f8776eeb@t-domaingrabbing.de> Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Thu, 10 Feb 2011 18:48:40 +0100 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; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: individual.net 4OFK2oTHFCVl4O3Quw1mRgRzBncA93ddmOwODC+B2NXQQTmIo+ Cancel-Lock: sha1:beSrrkWoNz1ik1iJqeh69tPtARs= User-Agent: Opera Mail/11.01 (Win32) Xref: g2news2.google.com comp.lang.ada:18197 Date: 2011-02-10T18:48:40+01:00 List-Id: J-P. Rosen wrote: > Le 09/02/2011 23:25, Vinzent Hoefler a =C3=A9crit : >>> No. They are just used to write left to right. >> >> Yes, but as you probably know, the number system is - arabic and ther= e >> the text-direction is "rtl". > > That's because you are insisting of considering that every machine wor= d > is a number. It is not. It just a set of bits. Yeah. I remember Turbo-Pascal sets and an associates discussion in the FreePascal mailing list where someone complained that the order of the bits changes with the endianess. In such a case the bit-numbering indeed= is more or less meaningless (and should be declared by convention), because it's not associated with some numeric value. (Yet, to be a really nit-picking a**hole, the original question was about the "third bit in a byte", and I consider "byte" an integral type, or "number".) >> 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? The opposite of red valleys. ;) > I'm surprised that a compiler is unable > to compute 31-N. I should probably have tried it again today to tell the precise problem. I just remember that the code compiled with GNAT for both little and big endian targets, but the target compiler complained if a bit-order attribute was given. Vinzent. -- = You know, we're sitting on four million pounds of fuel, one nuclear weap= on, and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it? -- Rockhound, "Armageddon"