MindScape

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  44 随笔 :: 17 文章 :: 48 评论 :: 4 引用

05 2009 档案

摘要: 当GCC以优化方式编译代码的时候,它会执行Dead Code Elimiation(DCE), 就是把那些源代码中定义但是却从未调用到的函数从中间目标文件中去掉.(.o文件)例如下面这段代码:#include <stdio.h>static void test() { printf ("this code is never called.");}int main() { printf("th...阅读全文
posted @ 2009-05-20 23:59 Jonny Yu 阅读(174) | 评论 (0) 编辑