摘要: 参考: https://shaharmike.com/cpp/rvo/ https://www.zhihu.com/question/22941176 https://www.zhihu.com/question/534389744 注意,不探讨 const 1. 函数形参 1.1 实参、形参组合 阅读全文
posted @ 2022-02-17 10:04 重返科韵路 阅读(349) 评论(0) 推荐(0)
摘要: 参考: https://www.jianshu.com/p/d19fc8447eaa https://isocpp.org/blog/2012/11/universal-references-in-c11-scott-meyers https://www.jianshu.com/p/b90d1091 阅读全文
posted @ 2022-02-10 13:44 重返科韵路 阅读(177) 评论(0) 推荐(0)
摘要: 参考: https://www.zhihu.com/question/499186365 https://www.zhihu.com/question/386434272 1. const 限定了什么 const 实际上有两层意思: 物理上的 constness 逻辑上的 constness 1.1 阅读全文
posted @ 2022-02-10 13:40 重返科韵路 阅读(103) 评论(0) 推荐(0)
摘要: 参考: https://juejin.cn/post/6857057314504081416 https://www.zhihu.com/question/389546003/answer/1194780618 https://www.zhihu.com/question/29251261/answ 阅读全文
posted @ 2022-01-18 10:50 重返科韵路 阅读(147) 评论(0) 推荐(0)
摘要: 实验环境:os: centos8.5 / kernel: 4.18.0 / gcc: 8.5.0 / arch: x86-64 1. 函数参数的传递和参数的返回 我们知道,在 x86-64 linux 系统机器上,参数不超过 6 个时,优先使用 rdi, rsi, rdx, rcx, r8, r9 阅读全文
posted @ 2022-01-14 17:57 重返科韵路 阅读(60) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/lqt641/article/details/73002566 https://blog.csdn.net/yangkuanqaz85988/article/details/52403726 http://home.ustc.edu.cn/~hch 阅读全文
posted @ 2022-01-05 18:13 重返科韵路 阅读(791) 评论(0) 推荐(0)
摘要: 参考: https://www.zhihu.com/question/24916947 https://www.cnblogs.com/vamei/p/9329278.html https://zhuanlan.zhihu.com/p/346892153 https://www.cnblogs.co 阅读全文
posted @ 2021-12-23 18:28 重返科韵路 阅读(310) 评论(0) 推荐(0)
摘要: 参考: UNIX环境高级编程 第三版 实验环境:os: centos8.5 / kernel: 4.18.0 / gcc: 8.5.0 / arch: x86-64 示例内核代码版本:5.15.5 1. 文件 io 1.1 open() 系统调用 在进程/线程 struct task > struc 阅读全文
posted @ 2021-12-04 16:40 重返科韵路 阅读(969) 评论(0) 推荐(0)