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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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-25 07:45:26 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Pragma Volatile Date: Tue, 25 Sep 2001 10:38:50 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9oq4tt$a65$1@nh.pace.co.uk> References: <3BB08F9C.BFB01047@raytheon.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1001428733 10437 136.170.200.133 (25 Sep 2001 14:38:53 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 25 Sep 2001 14:38:53 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:13336 Date: 2001-09-25T14:38:53+00:00 List-Id: You apply it to an object (variable) to prevent the compiler from optimizing the memory location away and/or keeping it in a register. This is useful for embedded apps that need to make sure that when an object "X" is declared, that it actually resides in memory somewhere because, for example, it may be read/updated by other hardware/software. This should be explained in the ARM somewhere - have you tried looking around through that? If you don't have the ARM available, it does exist on-line at http://www.adapower.org/ MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Jon R. Harshaw" wrote in message news:3BB08F9C.BFB01047@raytheon.com... > OK. - Since I can't find a reference for this in my limited > documentation, what does "Pragma Volatile" do? I'm guessing that it is > just available while the process that invokes it is up and running, but > that's just a WAG... >