egcs 1.1b and "volatile"
Jeffrey A Law
law@cygnus.com
Thu Oct 29 09:46:00 GMT 1998
In message < 3637A2D7.3B01A550@utoronto.ca >you write:
> This is a multi-part message in MIME format.
> --------------CDDA1730C8C094789C88A68C
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Is there some way to guarantee that a volatile variable will remain
> volatile regardless of optimization level? This is critical when
> writing a device driver that modifies CPU memory. eg. i82596.
A load to or store from a volatile variable can never be deleted regardless
of the optimization level.
jeff
More information about the Gcc
mailing list