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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,148d39ae0d22411d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-30 19:58:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news2.rdc2.tx.home.com.POSTED!not-for-mail Sender: minyard@wf-rch.cirr.com Newsgroups: comp.lang.ada Subject: Re: Pragma Volatile References: <3BB08F9C.BFB01047@raytheon.com> <3BB10D52.4D455DBA@raytheon.com> <3BB60733.4A80708A@avercom.net> <3BB64B13.81AFFB4D@acm.org> <5ee5b646.0109300510.71255128@posting.google.com> <3BB78C4D.66484277@acm.org> Reply-To: minyard@acm.org From: minyard@acm.org Message-ID: X-Newsreader: Gnus v5.7/Emacs 20.7 Date: Mon, 01 Oct 2001 02:58:52 GMT NNTP-Posting-Host: 24.7.109.109 X-Complaints-To: abuse@home.net X-Trace: news2.rdc2.tx.home.com 1001905132 24.7.109.109 (Sun, 30 Sep 2001 19:58:52 PDT) NNTP-Posting-Date: Sun, 30 Sep 2001 19:58:52 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:13565 Date: 2001-10-01T02:58:52+00:00 List-Id: Jeffrey Carter writes: > > Thanks again to Robert Dewar for pointing out implicit assumptions. > > I was actually responding to Corey Minyard's implicit assumption that a > pointer was needed to access a memory-mapped hardware register. Yes, I am a C programmer (the cursed language). I am coming back to Ada after not using it for a while, and I had forgotten you could assign addresses that way. I haven't gotten that far back into Norm Cohen's book :-). But even if I had remembered, I would have made the same example, because part of the point was that you need to be careful what you make volatile. If you make the wrong thing volatile, it doesn't help at all, and it's easy to make the mistake. Not as easy as in C, though. -Corey