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: About RTL


王 逸 wrote:
> 1. I used "gcc -dr *.c" command to dump RTL code, but only got the RTL code for main function. 
>    (It begins with "; Main Function", so I guess it does not express the whole program.)
>    How can I get the whole program's RTL representation?

-dr does dump the RTL for the entire module you are compiling.  There is
no RTL for libraries if that is what you are looking for.  If your
question is something else, then please give a testcase.

> 2. I'm not familiar with GCC and RTL, how can I get some resources about them? 
>    (except GCC internals, I've already got one.)

We have only the sources and the documentation.

> 3. Which files are related to RTL generation in the GCC source? I'd like to read some of them.

See the section "RTL generation" in the gcc/doc/passes.texi file.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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