Intermediate code dump needed.
Ashish Gupta
ashishg@niksun.com
Thu Apr 18 09:55:00 GMT 2002
The gcc/g++ has options to dump the output of the traslation at 2 statges
1) After preprocessing
2) After assembly
quote - gcc man page --
If you want only some of the four stages (preprocess, com-
pile, assemble, link), you can use `-x' (or filename suf-
fixes) to tell gcc where to start, and one of the options
`-c', `-S', or `-E' to say where gcc is to stop. Note
that some combinations (for example, `-x cpp-output -E')
instruct gcc to do nothing at all.
-S Stop after the stage of compilation proper; do not
assemble. The output is an assembler code file for
each non-assembler input file specified.
By default, GCC makes the assembler file name for a
source file by replacing the suffix `.c', `.i',
etc., with `.s'. Use -o to select another name.
GCC ignores any input files that don't require com-
pilation.
-E Stop after the preprocessing stage; do not run the
compiler proper. The output is preprocessed source
code, which is sent to the standard output.
GCC ignores input files which don't require prepro-
cessing.
Look for more stuff in the man page.. Hope this helps.....
Regards,
Naveen Sharma, Noida wrote:
> I think fdump-translation-unit should be useful for you.
>
>
>
> -fdump-translation-unit (C and C++ only)
>
-fdump-translation-unit- number (C and C++ only)
Dump a representation of the tree structure for the entire translation
unit to a file. The file name is made by appending `.tu' to the source
file name. If the `-number' form is used, number controls the details of
the dump as described for the `-fdump-tree' options.
Naveen.
-----Original Message-----
From: Jaswant [mailto:jaswant@msrvr.indofuji.soft.net]
Sent: Thursday, April 18, 2002 7:58 PM
To: gcc@gnu.org; help-gcc@gnu.org
Subject: Intermediate code dump needed.
Hi All,
I'm not sure what I'm asking makes sense, but just help me in it.
Is it possible to take dump of my 'C' program before RTL generation
or any optimisation during compilation using gcc.
[Theoretically speaking output of semantic analysis]
regards,
Jaswant
____________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
IncrediMail - Email has finally evolved - Click Here
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9>
------------------------------------------------------------------------
<cid:part2.00040808.07040305@netscape.com>
------------------------------------------------------------------------
<cid:part3.03020807.01080104@netscape.com>
--
/////
\\ - - //
( @ @ )
-------------oOOo--(_)-oOOo-----------
Sincerely yours,
Ashish Gupta
-----------------------Ooooo----------
( )
ooooO ) /
( ) (_/
\ (
\_)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20020418/c96de9ed/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gif&filename=ATT505224.gif
Type: image/gif
Size: 494 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20020418/c96de9ed/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jpeg&filename=ATT505225.jpg
Type: image/jpeg
Size: 1431 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20020418/c96de9ed/attachment-0001.jpg>
More information about the Gcc-help
mailing list