摘要:
global_timer_upper和global_timer_low指向的存储空间是 global timer 的高32位和低32位,它们会不停变化,下面的程序功能是读取当前的global timer值。这里会出现一个常见的编译器优化带来的错误。源程序如下:#0 [volatile] unsigned long *global_timer_upper, *global_timer_low;inline unsigned long long read_cycle(unsigned int *re_low, unsigned int *re_upper){ #1 [volatile] ... 阅读全文