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

[no subject]



> 3) Are you sure gcc isn't doing the same thing -- converting `-pg'
>    to `-p'?  (It does on my box.)

It may, but whatever gcc does, it seems to work. What g77
does doesn't. Only clues I have are the '-p' and the resulting
gprof output contains NO FORTRAN routine information.
It does show the C routines though.
Usually that means one didn't use the '-pg' flag on those
routines. So, since I know it was added, somehow it got
dropped. Maybe FORTRAN doesn't hook up correctly
to the profile counting routines?? Maybe FORTRAN
requires a MAIN routine to trigger the counting?? That
won't happen in my code. C sits on top of the FORTRAN
code to allocate memory and initialize things. If someone
could explain how FORTRAN does profiling, that might
give me a clue on what to do. I do see that the C runtime
routine seems to be switched for profiling according to
the gcc specs file, gcrt1.o vs crt1.o.  By looking at the
specs, it appears '-p' and '-pg' do the same thing. So,
that leads back to how does FORTRAN hook up
profiling.


Wes



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