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,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Mon, 14 Feb 2011 18:25:25 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <8e200ae9-51c7-4756-9d06-7b5dbc6eb85c@m27g2000prj.googlegroups.com> <4d5872d3$0$1707$882e7ee2@usenet-news.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1297729529 5426 69.95.181.76 (15 Feb 2011 00:25:29 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 15 Feb 2011 00:25:29 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news1.google.com comp.lang.ada:17283 Date: 2011-02-14T18:25:25-06:00 List-Id: "Hyman Rosen" wrote in message news:4d5872d3$0$1707$882e7ee2@usenet-news.net... > On 2/11/2011 11:47 PM, Edward Fish wrote: >> But if you're using GNAT you may have noticed that it doesn't allow >> a straight "For Data'Address Use 16#000B_8000#;" because GNAT >> uses a private type and not a derivative of Universal_Integer. >> >> They recommend an implementation-dependent "to_Address" function, >> but that would make things non-portable. > > Portable to what? Other systems that also happen to have a two-segment > address with a video frame buffer at 16#000B_8000#? Aren't you being a > little pedantic here? There definitely are different degrees of portabaility. He's probably thinking of "portable for the same target", that is, portable to another Ada implementation on the same target. That's not that uncommon of a goal. Claw, for example is intended to be a portable interface to Windows, "portable" in the sense that it will work on all Ada 95 compilers that target Windows. This is something that has to be baked in from the beginning, in that if you get in bad habits of depending on implementation-specific behavior, it can be very painful to work out from under them. Portability to any Ada compiler for any target is even better, but it doesn't make sense for a lot of applications. (What good does an interface to Windows do on Linux?) Randy.