* RE: Intermediate code dump needed.
@ 2002-04-18 7:50 Naveen Sharma, Noida
2002-04-18 9:04 ` Siaction struct question Ish Rattan
2002-04-18 9:55 ` Intermediate code dump needed Ashish Gupta
0 siblings, 2 replies; 4+ messages in thread
From: Naveen Sharma, Noida @ 2002-04-18 7:50 UTC (permalink / raw)
To: Jaswant, gcc, help-gcc
[-- Attachment #1.1: Type: text/plain, Size: 1137 bytes --]
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 -
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click Here
[-- Attachment #1.2: Type: text/html, Size: 4874 bytes --]
[-- Attachment #2: ATT505224.gif --]
[-- Type: image/gif, Size: 494 bytes --]
[-- Attachment #3: ATT505225.jpg --]
[-- Type: Image/jpeg, Size: 1431 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Siaction struct question..
2002-04-18 7:50 Intermediate code dump needed Naveen Sharma, Noida
@ 2002-04-18 9:04 ` Ish Rattan
2002-04-18 9:50 ` Momchil Velikov
2002-04-18 9:55 ` Intermediate code dump needed Ashish Gupta
1 sibling, 1 reply; 4+ messages in thread
From: Ish Rattan @ 2002-04-18 9:04 UTC (permalink / raw)
To: gcc-help
Solaris-8 + gcc-2.95.3.
gcc complains about POSIX signal struct
struct siagction act;
when -ansi flage is used. Any ideas?
-ishwar
---
#include <signal.h>
int main()
{
struct sigaction act;
exit(0);
}
--
gcc -ansi file.c
file.c: 5: storage size of `act' isn't known
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Siaction struct question..
2002-04-18 9:04 ` Siaction struct question Ish Rattan
@ 2002-04-18 9:50 ` Momchil Velikov
0 siblings, 0 replies; 4+ messages in thread
From: Momchil Velikov @ 2002-04-18 9:50 UTC (permalink / raw)
To: Ish Rattan; +Cc: gcc-help
>>>>> "Ish" == Ish Rattan <ishwar@pali.cps.cmich.edu> writes:
Ish> Solaris-8 + gcc-2.95.3.
Ish> gcc complains about POSIX signal struct
Ish> struct siagction act;
Ish> when -ansi flage is used. Any ideas?
struct sigaction is defined by POSIX, not ANSI, thus it is not
available in the ANSI C compilation environment.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Intermediate code dump needed.
2002-04-18 7:50 Intermediate code dump needed Naveen Sharma, Noida
2002-04-18 9:04 ` Siaction struct question Ish Rattan
@ 2002-04-18 9:55 ` Ashish Gupta
1 sibling, 0 replies; 4+ messages in thread
From: Ashish Gupta @ 2002-04-18 9:55 UTC (permalink / raw)
To: Naveen Sharma, Noida; +Cc: Jaswant, gcc, help-gcc
[-- Attachment #1: Type: text/plain, Size: 3157 bytes --]
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 ) /
( ) (_/
\ (
\_)
[-- Attachment #2.1: Type: text/html, Size: 8736 bytes --]
[-- Attachment #2.2: gif&filename=ATT505224.gif --]
[-- Type: image/gif, Size: 494 bytes --]
[-- Attachment #2.3: jpeg&filename=ATT505225.jpg --]
[-- Type: Image/jpeg, Size: 1431 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-18 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18 7:50 Intermediate code dump needed Naveen Sharma, Noida
2002-04-18 9:04 ` Siaction struct question Ish Rattan
2002-04-18 9:50 ` Momchil Velikov
2002-04-18 9:55 ` Intermediate code dump needed Ashish Gupta
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).