RE: newbiew at gcc argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lyle!

sorry that i write about this again , but i have a question, according to 
gprof man page , when i compile the source file , i will receveid two file 
one a.out and other gmon.out.

from gprof man page:
The  profile  data is taken from the call graph profile file (gmon.out 
default) which is created by programs that are  compiled with  the  -pg  
option  of  "cc", "pc", and "f77".

but when i run 
g++ -pg test.C , only a.out are creat.

How i can creat the gmon.out? i need to write this? 

thank you ,

Marcelo

On Wed, 16 Jun 2004 lrtaylor@xxxxxxxxxx wrote:

>Look at the -p and -pg arguments to gcc/g++.  However, you'll also need
>to look at prof or gprof, because you'll need one of those programs to
>analyze the profiling data.
>
>Thanks,
>Lyle
>
>



Minha vida foi uma sucessao de acasos felizes
			criminalista e imortal Evandro Lins e Silva 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux