From: Kyung-suk Lhee <klhee@ecs.syr.edu>
To: gcc@gcc.gnu.org
Subject: saving tree structure
Date: Wed, 21 Aug 2002 13:52:00 -0000 [thread overview]
Message-ID: <Pine.GSO.4.44.0208211632140.1582-100000@apollo.ecs.syr.edu> (raw)
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
next reply other threads:[~2002-08-21 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-21 13:52 Kyung-suk Lhee [this message]
2002-08-21 18:19 ` Devang Patel
2002-08-22 10:18 ` Kyung-suk Lhee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.44.0208211632140.1582-100000@apollo.ecs.syr.edu \
--to=klhee@ecs.syr.edu \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).