🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51257

Can't see the forest for the TREEs!

#51257
From: Ken Hardy
Date: Tue, 22 Jun 1993 22:19
19 lines
1503 bytes
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.  ;->
Technical Details
Message-ID: <1655@racerx.bridge.COM>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!racerx!Bridge.COM

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,18e5f6757bb2a9a5,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-22 15:22:54 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!racerx!Bridge.COM
From: ken@Bridge.COM (Ken Hardy)
Newsgroups: gnu.gcc.help
Subject: Can't see the forest for the TREEs!
Message-ID: <1655@racerx.bridge.COM>
Date: 22 Jun 93 22:19:30 GMT
Sender: ken@racerx.bridge.COM
Distribution: gnu
Organization: Planet Earth
Lines: 20