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: call graph - question ?


> 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


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