11 2022 档案

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

点击右上角即可分享
微信分享提示