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: RTL representations and virtual addresses


Sunzir Deepur wrote:
I use -da to dump RTL files of the passes.
Is there a way to add the virtual addresses of each directive ?

You can't compute addresses reliably until after reload. Before reload, the size of each rtl insn is unknown.


My wish is to generate a CFG in which I would know, for each basic block
and RTL command, what is the virtual address this command will be at
in the binary..

You can already find much of this info in the gcov profiling files. See profile.c and gcov.c and other related files.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com



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