ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
16 апреля
1139036 Топик полностью
BlackMorda, мудак (17.10.2021 08:55, просмотров: 286) ответил RxTx на Приведите пж-та выдержку стандарта, которая написана попроще.
ISO/IEC 9899:1999 (E) 

По поводу reorder

114) A volatile declaration may be used to describe an object corresponding to a memory-mapped input/output port or an object accessed by an asynchronously interrupting function. Actions on objects so declared shall not be ‘‘optimized out’’ by an implementation or reordered except as permitted by the rules for evaluating expressions.

Из мануала на компилятор IAR ARM

The volatile type qualifier is used to inform the compiler that it may not make any assumptions about a variable or memory location (or a series of them), and that such variables must be read from or written to as specified and in the same order as in the source code