This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: newbiew at gcc argument


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@micron.com 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]