Recent Posts

explore x86_64 main(), part 2

在上一篇,我们已经了解了内核和ld.so在运行一个可执行文件中的作用,并且已经成功跳转到了可执行文件的入口_start。这一篇会继续探索,看看从_start开始最终怎么调用到main函数。

explore x86_64 main(), part 1

看了之后“The Bits Between the Bits: How We Get to main()“,本来想按图索骥再学习一遍,没想到在我的环境下已经完全没法复现,于是才有了这篇文章。

dynamic_cast From Scratch

这篇文章总结自Arthur O’Dwyer在CppCon上的演讲dynamic_cast From Scratch,主要是先介绍运行时多态的相关基础知识,以及如何自己实现一个dynamic_cast。

Coroutine internals

上次研究了Fiber,这次结合C++ Coroutines TS(N4680)和folly::coro::Baton,看看Coroutine~

Jemalloc 5.3.0 internals, part 3

上一篇介绍了hpa (huge page allocator),这一篇继续介绍物理层的另一种page allocator: pac (page allocator classic)。

Jemalloc 5.3.0 internals, part 2

上一篇我们介绍了Jemalloc的逻辑层,这一篇我们把目光投向物理层,首先看page allocator中的一种hpa,也就是huge page allocator。