随笔分类 -  源码

摘要:GoLang 的协程调度和 GMP 模型 GoLang 是怎么启动的 关于 GoLang 的汇编语言,请查阅 参考文献[1] 和 参考文献[2] 编写一个简单的 GoLang 程序 main.go, 用 go build -o main main.go 编译生成可执行文件 main package 阅读全文
posted @ 2019-12-14 16:01 杨领well 阅读(46) 评论(0) 推荐(0)
摘要:libco 源码剖析(1): 协程上下文切换之 32 位 相关背景资料 关于汇编语言及内存布局相关基础,参看 参考文献[0], 参考文献[1]32 位协程上下文结构如下:// coctx.h struct coctx_t { void *regs[ 8 ]; size_t ss_size; char 阅读全文
posted @ 2019-07-05 15:18 杨领well 阅读(46) 评论(0) 推荐(0)
摘要:【源码】RapidJSON 源码剖析(0.1):调试工具 GDB 的使用 正式开始源码阅读之前,有必要了解一下源码阅读中用到的调试工具 GDB。 GDB(GNU Debugger) 是一种可以运行在多种类 Unix 系统上的,可移植的,适用于多种编程语言的调试器。 (The GNU Debugger 阅读全文
posted @ 2018-08-19 17:30 杨领well 阅读(52) 评论(0) 推荐(0)
摘要:RapidJSON 源码剖析(0):关于 RapidJSON 为什么会有《RapidJSON 源码剖析》系列博文? 之前转载的 Technique to Read Source Code ,详细地介绍了阅读源码的技巧。《RapidJSON 源码剖析》系列博文相当于是对 Technique to Re 阅读全文
posted @ 2018-08-04 21:05 杨领well 阅读(78) 评论(0) 推荐(0)
摘要:Technique to Read Source Code Excerpted from http://ruby-hacking-guide.github.io/intro.htm Any programmer has to read a source code somewhere, but I g 阅读全文
posted @ 2018-08-01 11:52 杨领well 阅读(31) 评论(0) 推荐(0)
摘要:STL中的智能指针(Smart Pointer)及其源码剖析: std::unique_ptr 和 std::auto_ptr一样,std::unique_ptr也是一种智能指针,它也是通过指针的方式来管理对象资源,并且在 unique_ptr 的生命期结束后释放该资源。unique_ptr 持有对 阅读全文
posted @ 2017-02-23 21:58 杨领well 阅读(74) 评论(0) 推荐(0)
摘要:STL中的智能指针(Smart Pointer)及其源码剖析: std::auto_ptr auto_ptr 是STL中的智能指针家族的成员之一, 它管理由 new expression 获得的对象,在 auto_ptr 对象销毁时,他所管理的对象也会自动被 delete 掉。auto_ptr 的拷 阅读全文
posted @ 2017-02-20 12:22 杨领well 阅读(93) 评论(0) 推荐(0)