RE: Live range information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

The scope of variables is well defined in the abstract syntax tree within
gcc. Thus after gcc has parsed the code, you should be able to easily
extract that information.

Greetings,
D.

> -----Original Message-----
> From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
> Behalf Of Vijayaraghavan Murali
> Sent: Tuesday, May 10, 2011 9:33 AM
> To: gcc-help@xxxxxxxxxxx
> Subject: Live range information
> 
> 
> Hi,
> 
> I'm wondering if there is a way to make gcc dump variables' live range
> information (using DWARF or otherwise). To be precise what I'm looking for
> is something like: 'a' is live from line 3 to 10, 'b' is live from line 4
> to
> 8, etc in some specified format. Is this possible in gcc?
> 
> Thanks!
> 
> -------------------------
> Vijayaraghavan Murali
> http://www.comp.nus.edu.sg/~mvijayar
> --
> View this message in context: http://old.nabble.com/Live-range-
> information-tp31583370p31583370.html
> Sent from the gcc - Help mailing list archive at Nabble.com.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux