This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Some clarifications regarding GIMPLE and LTO
- From: Mark Mitchell <mark at codesourcery dot com>
- To: nkavv at physics dot auth dot gr
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 26 Nov 2006 17:36:55 -0800
- Subject: Re: Some clarifications regarding GIMPLE and LTO
- References: <1164554352.4569b070834c7@mail.physics.auth.gr>
nkavv@physics.auth.gr wrote:
> Does the LTO branch try to achieve that the complete information for a "Program"
> can be sufficiently stored (in a file)? If this is already there, could anyone
> provide some pointers to the API?
Yes, on the LTO branch, we are working to store the entire translation
unit in a form that can then be read back into the compiler. The global
symbol table is stored using DWARF3, so you can read it back with a
standard DWARF reader. See lto/lto.c on the LTO branch for the code
that does this.
At present, there are a few things that are not yet written out to the
DWARF information (like GCC machine modes), but most things (types,
functions, variables) are present.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713