This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: About RTL
- From: Jim Wilson <wilson at specifixinc dot com>
- To: 王 逸 <cnnjuwy at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 29 Mar 2004 16:29:44 -0800
- Subject: Re: About RTL
- References: <Sea1-DAV37wgxgoNrRJ0000150e@hotmail.com>
王 逸 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