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: Code Flow for RTL generation


is there any way in gdb to step backward.

On 6/15/06, Andrew Haley <aph@redhat.com> wrote:
kernel coder writes:
 > hi,
 >     I'm trying to figure out the code flow of gcc.But i'm not been
 > able to locate the location at which an expression is compared with
 > pattern given in XXXX.md file.
 >
 > I think XXXX.md file is resposible fo generation of emit-insn.c
 > file.But again at which point the functions in  emit-insn.c file are
 > called for generation of RTL file.
 >
 > Please tell me where in code the pattern matching is done for RTL
 > generation.

Run cc1 in gdb.  Put a breakpoint on make_insn_raw.  Go up from that
point to find the caller.  You'll find that GEN_foo routines are
called from a number of places, in particular the expander.

Andrew.




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