[an error occurred while processing this directive] [an error occurred while processing this directive]
Хороший институт + самообразование + лет пять-десять практического опыта.
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Yuriy 06 мая 2002 г. 02:08
В ответ на: Откуда такие умные берутся отправлено Elektronik 05 мая 2002 г. 12:44

Для тех, кто не любит читать умные книги:

volatile означает, что переменная может изменяться способом неизвестным компилятору. То есть, обращения к ней нельзя оптимизировать. И ВСЕ.
К области видимости volatile не имеет _никакого_ отношения.

Учите матчасть.

------------------------------------
An object that has volatile-qualified type may be modified in ways unknown to the implementation or have other unknown side effects. Therefore any expression referring to such an object shall be evaluated strictly according to the rules of the abstract machine,
as described in 5.1.2.3. Furthermore, at every sequence point the value last stored in the object shall agree with that prescribed by the abstract machine, except as modified by the unknown factors mentioned previously. What constitutes an access to an object that has volatile-qualified type is implementation-defined.
------------------------------------------------------------


Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru