This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: call graph - question ?
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Virender Kashyap <virenk at cse dot iitb dot ac dot in>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 25 Nov 2004 13:46:19 +0100
- Subject: Re: call graph - question ?
- References: <Pine.LNX.4.61.0411182240030.25650@mars.cse.iitb.ac.in>
> HI,
> I had doubt whether in unit-at-time mode call graph is built
> incrementally or is it built only after all the funcitons have been
> parsed (i.e. after cgraph_finalize_compilation unit functions is called).
> In the latter case, where are all the function trees stored then ?
> I presume that cgraph nodes are allotted to respective functions (and
> trees stored there) and only call and return edges are fixed after all
> funcitons are ready with
> their trees.
> Could someone please clarify on this?
Yep, the nodes are produced as the functions are being finished and in
the cgraph_finalize_compilation_unit the edges are built and unused
bodies/nodes prunned out.
Honza
>
>
> Thanks and Regards.
> Virender