comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Pragma Volatile
Date: Tue, 25 Sep 2001 10:38:50 -0400
Date: 2001-09-25T14:38:53+00:00	[thread overview]
Message-ID: <9oq4tt$a65$1@nh.pace.co.uk> (raw)
In-Reply-To: 3BB08F9C.BFB01047@raytheon.com

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" <Jon.Harshaw@raytheon.com> 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...
>






  parent reply	other threads:[~2001-09-25 14:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-25 14:07 Pragma Volatile Jon R. Harshaw
2001-09-25 14:23 ` David C. Hoos
2001-09-25 14:38 ` Marin David Condic [this message]
2001-09-25 23:03 ` Mark Johnson
2001-09-29 17:38   ` Tucker Taft
2001-09-29 18:22     ` minyard
2001-09-29 22:28       ` Jeffrey Carter
2001-09-30 13:10         ` Robert Dewar
2001-09-30 21:19           ` Jeffrey Carter
2001-10-01  2:58             ` minyard
2001-10-02  9:38           ` AG
2001-10-02 10:59             ` Jeff Creem
2001-09-30  2:03       ` DuckE
2001-09-30 13:01       ` Robert Dewar
2001-09-30 20:12         ` minyard
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox