CS: APP CH5:编译器/处理器视角的程序优化

借banner以表达对MC的热爱。。。( ̄▽ ̄)

v0.1: initial commit
v0.1.1: 感谢小神师兄的提醒与指导!


CS: APP 第五章从编译器与处理器的角度,利用c语言实现,描述了程序通用的优化方法。这种通用的方法的度量因不同处理器而异,但策略是相似的。除开算法上的优化,基于机器的系数级优化是本章的重点。我们利用CPE(Cycle Per Element)来度量程序的执行效率,以4代 core i7-47x0 以及 GCC4.8.x 为样例机器,通过多种方式来对程序进行系数级优化。

阅读更多

CS: APP chapter 3 notes: (variable) stack frame

Introduction

Chapter III of CS: APP mainly describes x86_64 assembly in details, which gives a dictionary-like introduction. Nevertheless, the reason why performming this chapter is to give a vivid adhere of chapter V. In this post, I just elaborate a small part introduced by a few of section, that is the runtime stack.

阅读更多

CS: APP 官方的勘误

第三版的CS:APP有很多细节问题。特别日前看到的第三章。

不过国内的出版社有进行勘误,尽管还是没有完全地查出来。

(尽管都是细节问题,但也是应该检查正确才行。)

Despite our best efforts to create a book with zero defects, our vigilant readers have pointed out some bugs. Please report any new errata to Randy Bryant and Dave O’Hallaron. Note that some of these errors have been corrected in more recent printings.

There are a number of mistakes made by the authors in CS: APP. Here is the link to official errata webside:

CMU勘误的地址

阅读更多
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×