2012年5月13日

attribute syntax

摘要: 可以差下GUN GCC ATTRITUBE SYNTAX,阅读源码的时候方便查阅Attribute SyntaxThis section describes the syntax with which__attribute__may be used, and the constructs to which attribute specifiers bind, for the C language. Some details may vary for C++ and Objective-C. Because of infelicities in the grammar for attribute 阅读全文

posted @ 2012-05-13 16:24 阿加 阅读(1037) 评论(0) 推荐(0) 编辑

0.12记录

摘要: 出自0.12:main()也是一个函数。这是因为在编译连接时它将会作为crt0.s汇编程序的函数被调用。crt0.s是一个桩(stub)程序,名称中的“crt”是“C run-time”的缩写。该程序的目标文件将被链接在每个用户执行程序的开始部分,主要用于设置一些初始化全局变量。通常使用gcc编译链接生成文件时,gcc会自动把该文件的代码作为第一个模块链接在可执行程序中。在编译时使用显示详细信息选项“-v”就可以明显地看出这个链接操作过程。因此在通常的编译过程中,我们无需特别指定stub模块crt0.o。为了使用ELF格式的目标文件以及建立共享库模块文件,现在的编译器已经把crt0扩展成几个模 阅读全文

posted @ 2012-05-13 16:20 阿加 阅读(397) 评论(0) 推荐(0) 编辑

导航