Volatile ( 1 ) C/C++ . volatile 변수 volatile 변수 선언 형식. volatile uint8_t ui8_v; // 변수 ui8_v 가 volatile 이 됨. uint8_t volatile ui8_v 로 해도 동일하나 일관되게 volatile 을 가장먼저 기록해 volatile uint8_t * pui8_v; // 포인터 변수 pui8_v 의 대상이 volatile 이 됨. uint8_t * volatile pui8_v; // 포인터 변수 pui8_v 자체가 volatile 이 됨. volatile uint8_t * volatile pui8_v; // 포인터 변수 pui8_v 자체와 pui8_v의 대상 모두 volatile 이 됨. volatile 변수 선언 의미 - volatile 로 선언된 변수들은 컴파일러가 최적화 하지 않는다. .. 2023. 3. 10. 이전 1 다음