Article View: gnu.gcc.help
Article #51047Re: Can't see the forest for the TREEs!
From: Ronald F. Guilmette
Date: Thu, 24 Jun 1993 08:07
Date: Thu, 24 Jun 1993 08:07
34 lines
2218 bytes
2218 bytes
In article <1655@racerx.bridge.COM> ken@Bridge.COM (Ken Hardy) writes: >I'm trying to hack the the C compiler's cc1 module to spit out lots of >useful (to me) information about structures and/or typedefs that it >processes. > >Can anyone offer me help or _documentation_ on how the compiler uses and >manages trees or lists or lists of trees or trees of lists? I've been >stepping through the compiler code with the debugger and am beginning >to get a glimmer of what's going on, but I'm lacking the "big >picture." Any pointers would be appreciated. > >What I'd really like is to find all the typedefs and print out detailed >info about their base classes, including the components of any >structures involved. So when I find a typedef, I need to find what it's >refering to, and if that is a structure, I need to examine all of it's >components, and if any of those components are structures (directly or >thru typedef'ed types), I need to delve into those, recursively. > > >Or maybe I should just sell life insurance. ;-> > I recommend looking at dwarfout.c. In that module, I must traverse the tree data structure produced by the front-end and output detailed debugging information based upon those trees. Dwarfout.c is pretty well documented internally... even if I do say so myself. -- -- Ronald F. Guilmette ------------------------------------------------------ ------ domain address: rfg@netcom.com --------------------------------------- ------ uucp address: ...!uunet!netcom.com!rfg -------------------------------
Technical Details
Message-ID:
<rfgC9498w.IFG@netcom.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!hal.com!decwrl!netcomsv!netcom.com!rfgReferences:
<1655@racerx.bridge.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,18e5f6757bb2a9a5 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-24 01:35:25 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cs.utexas.edu!uunet!olivea!hal.com!decwrl!netcomsv!netcom.com!rfg From: rfg@netcom.com (Ronald F. Guilmette) Subject: Re: Can't see the forest for the TREEs! Message-ID: <rfgC9498w.IFG@netcom.com> Organization: Netcom Online Communications Services (408-241-9760 login: guest) References: <1655@racerx.bridge.COM> Distribution: gnu Date: Thu, 24 Jun 1993 08:07:44 GMT Lines: 34