Related articles |
---|
GCC -fdump-translation-unit .tu file format dirtysalt1987@gmail.com (dirtysalt1987@gmail.com) (2008-10-14) |
Re: GCC -fdump-translation-unit .tu file format dnovillo@acm.org (Diego Novillo) (2008-10-15) |
Re: GCC -fdump-translation-unit .tu file format pertti.kellomaki@tut.fi (Pertti Kellomaki) (2008-10-16) |
Re: GCC -fdump-translation-unit .tu file format dirtysalt1987@gmail.com (dirtysalt1987@gmail.com) (2008-10-17) |
Re: GCC -fdump-translation-unit .tu file format armelasselin@hotmail.com (Armel) (2008-10-17) |
From: | "Diego Novillo" <dnovillo@acm.org> |
Newsgroups: | comp.compilers |
Date: | Wed, 15 Oct 2008 18:53:24 -0400 |
Organization: | Compilers Central |
References: | 08-10-024 |
Keywords: | GCC |
Posted-Date: | 15 Oct 2008 18:59:35 EDT |
On Wed, Oct 15, 2008 at 02:05, dirtysalt1987@gmail.com <dirtysalt1987@gmail.com> wrote:
> Help!!!Is there some one here who had been working on this field?
> Counld you give me some information where i can find the .tu file
> format???Or would you be so kind to tell me is there any other better
> way to extract the information from C++ source file???
There is little to no documentation about any of the dump files
emitted by GCC. We use them for debugging the compiler and not much
else. The .tu dump has been used by some folks to do some analysis,
but it is certainly not the intent to produce a complete dump of the
internal representation.
The best way to understand the format of the .tu file is to study the
source code of the particular version of GCC that you are working with
(tree-dump.c:dump_node is a good start). Different versions of GCC
may include different information in it.
Have you thought about hooking your analysis directly as a GCC pass?
Diego.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.