On 20 January 2014 15:00, Michele Co <mc2zk@xxxxxxxxxxxx> wrote: > Hello, > > I'd like to gather/output information (size, offset, type -- if possible) of > compiler-generated temporaries generated by gcc during compilation. I have > looked through the compiler options related to generating debug information > but am unsure whether there is an option available that will already give me > this information in some form. > > Does anyone on this list know of a quick and relatively straightforward > method for gathering and outputting this information if it hasn't already > been done before? One of the -fdump-tree-xxx options might provide the information you want, e.g. -fdump-tree-original I don't think debug info includes temporaries that aren't named in the source, but I could be wrong.