public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Time of compiling
@ 2006-11-11 20:14 shart
  2006-11-11 20:54 ` Perry Smith
  0 siblings, 1 reply; 8+ messages in thread
From: shart @ 2006-11-11 20:14 UTC (permalink / raw)
  To: gcc-help


Is possible to show the time of compilig?In Gcc and also in Gpp?
thanks
-- 
View this message in context: http://www.nabble.com/Time-of-compiling-tf2614187.html#a7296286
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Time of compiling
@ 2006-11-17 10:10 Jayant Sonar
  0 siblings, 0 replies; 8+ messages in thread
From: Jayant Sonar @ 2006-11-17 10:10 UTC (permalink / raw)
  To: shart1; +Cc: gcc-help

Hi shart,

> I want that the compiler show the entire duration (in second) of
compilation
> of any programm.

If you are looking for the total time that compiler takes to compile 
a program, you can pass the command line option "-ftime-report" to 
compiler. It makes the compiler print some statistics about the time 
consumed by each pass when it finishes. 

e.g. when I passed this option while compiling my C program - "test.c"
as 
following -
	gcc test.c -ftime-report

I got the details about compilation time as - 

preprocessing :  0.01 (50%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall
93 kB (12%) ggc
lexical analysis:  0.00 ( 0%) usr   0.00 ( 0%) sys   0.02 (67%) wall
0 kB ( 0%) ggc
TOTAL            :  0.02             0.00             0.03
768 kB

Regards
Jayant

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-17 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-11 20:14 Time of compiling shart
2006-11-11 20:54 ` Perry Smith
2006-11-12  9:34   ` shart
2006-11-12 10:52     ` Raúl Huertas
2006-11-12 10:57       ` shart
2006-11-12 11:08         ` Raúl Huertas
2006-11-12 13:39         ` Time of compiling (Gross hideous mess) Perry Smith
2006-11-17 10:10 Time of compiling Jayant Sonar

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).