From: "Jayant Sonar" <JayantS@KPITCummins.com>
To: <shart1@jumpy.it>
Cc: <gcc-help@gcc.gnu.org>
Subject: Re: Time of compiling
Date: Fri, 17 Nov 2006 10:10:00 -0000 [thread overview]
Message-ID: <4A1BE23A7B777442B60F4B4916AE0F130EA48680@sohm.kpit.com> (raw)
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
next reply other threads:[~2006-11-17 10:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 10:10 Jayant Sonar [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-11 20:14 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A1BE23A7B777442B60F4B4916AE0F130EA48680@sohm.kpit.com \
--to=jayants@kpitcummins.com \
--cc=gcc-help@gcc.gnu.org \
--cc=shart1@jumpy.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).