public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* saving tree structure
@ 2002-08-21 13:52 Kyung-suk Lhee
  2002-08-21 18:19 ` Devang Patel
  0 siblings, 1 reply; 3+ messages in thread
From: Kyung-suk Lhee @ 2002-08-21 13:52 UTC (permalink / raw)
  To: gcc

hi,
I'm trying to save the tree (AST) to a file so
that I can compile it later. I need to do this
to perform interprocedural analysis before producing
an executable. I'm wondering if this would be
doable, or if anybody did a similar work on gcc.

I don't have much idea of how to do this now. I think
I would have to augment dump_node() in tree-dump.c to
save global variables if any. assuming this would work,
then I hope that it would be enough to just call
finish_function() multiple times on the saved tree nodes,
to finish up the rest of the compilation steps. well, I
haven't really tried it yet, so I may be speaking nonsense.
anyways, I'll appreciate for any comment.
thanks,
kyung-suk Lhee
klhee@syr.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-22 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21 13:52 saving tree structure Kyung-suk Lhee
2002-08-21 18:19 ` Devang Patel
2002-08-22 10:18   ` Kyung-suk Lhee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).