gcc源代码分析,函数声明的类型<tree_list 95608产生的过程

来源:互联网 发布:php程序员职业寿命 编辑:程序博客网 时间:2024/06/12 22:51

int    printf            (const char *     , ... ) ;


typed_declspecs:

      typespec reserved_declspecs

        { $$ = tree_cons (NULL_TREE, $1, $2); }


<identifier_node 82008代表$1,<tree_list 95608代表$$。

printf
 <identifier_node 95540 printf permanent
 <identifier_node 82008 int permanent
    global <type_decl 82564 int
        type <integer_type 824d0 int permanent SI
            size <integer_cst 8254c literal permanent 4
            align 32 size_unit 8 sep_unit 32 symtab 0
            sep <integer_cst 8251c literal permanent -2147483648 precision 32 min <integer_cst 8251c -2147483648>
            max <integer_cst 82534 literal permanent 2147483647
            pointer_to_this <pointer_type 88b4c> chain <integer_type 825bc* char>
        permanent VOID file (null) line 0
        align 1 size_unit 1 offset 0

 <tree_list 95608 permanent
    value <identifier_node 82008 int permanent
        global <type_decl 82564 int type <integer_type 824d0* int>
            permanent VOID file (null) line 0
            align 1 size_unit 1 offset 0



0 0
原创粉丝点击