11 2022 档案
摘要:GCC struct 内存对齐规则 结构体起始地址需要被其中成员类型最大的大小所整除; 每个成员起始地址需要被其类型大小所整除,如int32_t类型成员内存对齐到4B; 如果成员有子结构体,则该子结构体成员起始地址要被其内部成员类型最大的所整除。如struct a里存有struct b,b 里有 c
阅读全文
摘要:使用示例 #include <atomic> #include <iostream> #include <thread> #include <vector> int main(int argc, char** argv) { constexpr size_t kLoopNum = 10; std::
阅读全文
摘要:本文主要翻译自 Arm Cortex-M7 Processor Technical Reference Manual r1p2 其中章节 Memory System / L1 caches / Store Buffer 。 Store Buffer Cache中的数据,在写入memory或 AXIM
阅读全文
摘要:https://zhuanlan.zhihu.com/p/142407249
阅读全文