About RTL

Jim Wilson wilson@specifixinc.com
Tue Mar 30 01:56:00 GMT 2004


Íõ ÒÝ 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



More information about the Gcc mailing list