day09-内存管理

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." 调试是第一次编写代码的两倍困难。因此,如果你尽可能巧妙地编写代码,那么按照定义(2倍困难),你就不够聪明去调试它了(Brian W. Kernighan,Canadian computer scientist, 与丹尼斯·里奇共著《C programming language》 )

"When debugging, novices insert corrective code; experts remove defective code."调试时,新人插入纠正代码,专家移除问题代码。(Richard Pattis)

“Programming is like sex. One mistake and you have to support it for the rest of your life.”(Michael Sinz)

关于内存管理

内存管理,是指软件运行时对计算机内存资源的分配和使用的技术。其最主要的目的是如何高效,快速的分配,并且在适当的时候释放和回收内存资源。

为什么要学习内存管理

指针方面的面试题很多都是关于内存管理的,所以必须的精通,不要放过任何细节。

了解ELF文件格式 了解可执行文件与虚拟内存的映射关系