volatile 关键字一般用于 MMIO寄存器、通信、中断服务中。
来源:https://stackoverflow.com/questions/246127/why-is-volatile-needed-in-c