一 、目标文件格式

  1. PE(Portabel Executable) 

  2. ELF (Executable Linkable Format) : 可重定位、可执行、共享目标文件、核心转储文件

 

 

思考:

  弱符号和弱引用   VS   回调函数

  

__attrbute__ ((weakref)) void foo( );

int main()
{
    if( foo )
        foo();
}

 可以被用户的强符号覆盖;

 posted on 2014-06-16 23:54  chagmf  阅读(130)  评论(0编辑  收藏  举报