This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: About Gcc...front end..
- From: Jim Wilson <wilson at redhat dot com>
- To: "Avinash K. Shrivastava" <avi_shri at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 03 Oct 2002 17:03:16 -0400
- Subject: Re: About Gcc...front end..
- References: <20021003201854.81154.qmail@web9506.mail.yahoo.com>
>[1] Is (.tu) file in the gcc-front-end IR
>representation, the only file which contains the
>complete information about the program....If no then
>what are the file(s)that constitute the complete info
>about LAST REPRESENTATION OF
>gcc-front-end-IR...Viz..trees [AST]....
There are no files that contain complete information about the program,
neither for trees (AST) nor for RTL (IL).
This is because FSF policy is to make it difficult for anyone to use
proprietary compiler code with gcc. The GPL prevents people from linking
proprietary code into gcc. If we emitted files with complete info, then
someone could write proprietary code that reads/writes those files which
would get around the GPL. Therefore, we don't emit any files that contain
complete info. The files that we do emit are to help debugging, and are
deliberately incomplete in one way or another.
Otherwise, yes, I think it is the last AST representation, after the compiler
is done, which doesn't help you much since it is too late to do anything
with the info at that point. This can be determined by looking at the sources.
If you want to work on the sources, you need to become familiar with them
anyways. Looking up info you need is a good way to learn more about the gcc
sources.
Jim