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: Getting a tree node for a field of a variable


On Jan 19, 2007, at 3:42 AM, Ferad Zyulkyarov wrote:
Is it possible to write a short example how a it could be referred the
tree of variable field?

Sure, just compile up the C code for what you want to do, run the debugger, watch what it builds and how it builds it. If you want to know what it looks like in the end, just print the built tree. However, if you have a complex language like C++, accessing a field can be, well, kinda different. You cannot employ the same techniques that you learn from C to C++.




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