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]

Re: command option




--On Friday, June 22, 2001 11:52:45 AM -0700 Joe Buck <jbuck@synopsys.COM> 
wrote:

>
>> Is there any command option for gcc I can use so that I can get the tree
>> representation for a given input C program? (That is, I want use gcc as a
>> parser only.)
>
> For C++, GCC turns an entire function into a tree.  However, for C it does
> not; pieces of functions (generally at the level of an assignment) get
> mapped to RTL. So GCC never builds a tree for the entire function.

No longer true; C and C++ are treated in the same way in GCC 3.0.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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