This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AST-tree in GCC


Perhaps you could also try
-fdump-tree-gimple
or
-fdump-tree-gimple-raw

In both cases you dump out the GIMPLE form, AST based.

Best,

T.

> Hi I want to extract the complete AST-tree from GCC (using 4.1.2).
> I´ve tried to use -fdump-translation-unit but it seems like its dosent
> include information in ex. for and if statements. If i use
> -fdump-tree-orignal-raw i get each function but not the external variables
> if they are not used in the function. My question is... Anyone knows a way
> to get all information ? Maybe changing a flag in the source code or
> something.
>
>
> //Regards John
>
>




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]