* gprof on mixed gcc/g77 code
@ 1998-05-20 8:56 Wes Bauske
1998-05-20 15:13 ` Craig Burley
0 siblings, 1 reply; 12+ messages in thread
From: Wes Bauske @ 1998-05-20 8:56 UTC (permalink / raw)
To: axp-list@redhat.com
I've got binaries where I mix C/FORTRAN and am trying
to gprof them on a RH5.0 system. Strictly C programs
appear to profile fine after adding the '-pg' flag to the
compile/link. However, when I add this flag to g77,
it seems to convert it to '-p'. Not what I want to
have happen. Is this what it does?? If so, why??
My command from the make printout:
g77 -c -pg -O2 -fschedule-insns -fschedule-insns2 -v t31int.f
Reading specs from /z/home/alpha/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)
/z/home/alpha/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.27/f771 t31int.f -fset-g77-defaults
-quiet -dumpbase t31int.f -O2 -version -fversion -p -fschedule-insns -fschedule-insns2 -o
/tmp/cca08161.s
GNU F77 version egcs-2.90.27 980315 (egcs-1.0.2 release) (alphaev56-unknown-linux-gnu) compiled by
GNU C version 2.7.2.3.
GNU Fortran Front End version 0.5.22-19970929
as -nocpp -o t31int.o /tmp/cca08161.s
Is there a way to stop this from happening??
Thanks.
Wes
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-20 8:56 Wes Bauske
@ 1998-05-20 15:13 ` Craig Burley
1998-05-20 18:44 ` Wes Bauske
0 siblings, 1 reply; 12+ messages in thread
From: Craig Burley @ 1998-05-20 15:13 UTC (permalink / raw)
To: axp-list
>I've got binaries where I mix C/FORTRAN and am trying
>to gprof them on a RH5.0 system. Strictly C programs
>appear to profile fine after adding the '-pg' flag to the
>compile/link. However, when I add this flag to g77,
>it seems to convert it to '-p'. Not what I want to
>have happen. Is this what it does?? If so, why??
1) What does "appear to profile fine" have to do with "seems to convert
it to `-p'"?
2) Why isn't converting it to `-p' what you want to have happen?
3) Are you sure gcc isn't doing the same thing -- converting `-pg'
to `-p'? (It does on my box.)
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-20 15:13 ` Craig Burley
@ 1998-05-20 18:44 ` Wes Bauske
1998-05-20 19:03 ` Craig Burley
0 siblings, 1 reply; 12+ messages in thread
From: Wes Bauske @ 1998-05-20 18:44 UTC (permalink / raw)
To: axp-list
Craig Burley wrote:
> >I've got binaries where I mix C/FORTRAN and am trying
> >to gprof them on a RH5.0 system. Strictly C programs
> >appear to profile fine after adding the '-pg' flag to the
> >compile/link. However, when I add this flag to g77,
> >it seems to convert it to '-p'. Not what I want to
> >have happen. Is this what it does?? If so, why??
>
> 1) What does "appear to profile fine" have to do with "seems to convert
> it to `-p'"?
>
The C program shows maybe 50 routines, with reasonable
looking cpu times.
> 2) Why isn't converting it to `-p' what you want to have happen?
>
From what I've used in the past, '-p' is for prof, '-pg' is for
gprof, and only gprof exists on my system.
> 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-20 18:44 ` Wes Bauske
@ 1998-05-20 19:03 ` Craig Burley
1998-05-20 21:40 ` Wes Bauske
0 siblings, 1 reply; 12+ messages in thread
From: Craig Burley @ 1998-05-20 19:03 UTC (permalink / raw)
To: axp-list
>Craig Burley wrote:
>
>> >I've got binaries where I mix C/FORTRAN and am trying
>> >to gprof them on a RH5.0 system. Strictly C programs
>> >appear to profile fine after adding the '-pg' flag to the
>> >compile/link. However, when I add this flag to g77,
>> >it seems to convert it to '-p'. Not what I want to
>> >have happen. Is this what it does?? If so, why??
>>
>> 1) What does "appear to profile fine" have to do with "seems to convert
>> it to `-p'"?
>
>The C program shows maybe 50 routines, with reasonable
>looking cpu times.
That seems completely unrelated. `-p' clearly has nothing to
do with the problem, since both cc1 and f771 -- *internal*
programs for gcc and g77 -- get passed `-p' to enable profiling
(even when *you* specify `-pg'). And they both share the bulk
of their code, including much of their options processing and
code generation (where profiling is mostly, if not entirely, handled).
>> 2) Why isn't converting it to `-p' what you want to have happen?
>
>>From what I've used in the past, '-p' is for prof, '-pg' is for
>gprof, and only gprof exists on my system.
You're talking about the gcc and g77 commands there. What gcc and
g77 accept for options is not always directly related to what
the internal programs cc1 and f771 accept. There are some similarities,
but it's incorrect to assume that any option you pass to gcc or g77
must necessarily be passed "unmolested" through to cc1 or f771
(or cc1plus or cc1obj, etc.).
>> 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.
Yet, that's not what you said earlier. You said the bug was that
f771 was passed `-p', yet that's the same thing cc1 is passed,
as you now verify. I just don't think that's the bug, and
your original reasoning as to why it was seemed clearly flawed
to me, and, being unaccompanied by complete information on the
problems you were encountering, made it difficult to guess as
to what might be wrong.
>What g77
>does doesn't. Only clues I have are the '-p' and the resulting
>gprof output contains NO FORTRAN routine information.
Perhaps you should submit a bug report? Both g77 and gcc come
with extensive documentation, including on how and where to
file bug reports.
>Maybe FORTRAN
>requires a MAIN routine to trigger the counting??
That might be. I don't know how profiling works in the gcc/g77
environment (yet). You might try making your own C version of
the f/runtime/libF77/main.c file, compiling it with -pg, and
linking it ahead of libf2c.a on the command line, and see if
that helps.
So this could just become Yet Another Reason Not To Put main()
In A Library. g77 already has a longish such list for libf2c
improvements.
>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.
See if `g77 -v -pg ...' reports the same kind of switching to
gcrt1.o and such as does `gcc -v -pg ...' on your system. If
so, then I'd guess it's the main-not-compiled-with--pg problem
suggested above.
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-20 19:03 ` Craig Burley
@ 1998-05-20 21:40 ` Wes Bauske
1998-05-21 1:38 ` Craig Burley
0 siblings, 1 reply; 12+ messages in thread
From: Wes Bauske @ 1998-05-20 21:40 UTC (permalink / raw)
To: axp-list
Craig Burley wrote:
>
> >
> >>From what I've used in the past, '-p' is for prof, '-pg' is for
> >gprof, and only gprof exists on my system.
>
> You're talking about the gcc and g77 commands there. What gcc and
> g77 accept for options is not always directly related to what
> the internal programs cc1 and f771 accept. There are some similarities,
> but it's incorrect to assume that any option you pass to gcc or g77
> must necessarily be passed "unmolested" through to cc1 or f771
> (or cc1plus or cc1obj, etc.).
>
Wonderful. Another way to confuse a user.
> >> 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.
>
> Yet, that's not what you said earlier. You said the bug was that
> f771 was passed `-p', yet that's the same thing cc1 is passed,
> as you now verify. I just don't think that's the bug, and
> your original reasoning as to why it was seemed clearly flawed
> to me, and, being unaccompanied by complete information on the
> problems you were encountering, made it difficult to guess as
> to what might be wrong.
>
I'm only looking at symptoms. I make no claims that what
I see and what is happening are necessarily related. I
only pick symptoms based on my knowledge of how the code
works. '-p' in user land is not the same as '-pg'. It
appears the compilers are converting things to '-p' and
it looks like that is OK from what I see in the specs
file. So it's off my list of worries.
> >What g77
> >does doesn't. Only clues I have are the '-p' and the resulting
> >gprof output contains NO FORTRAN routine information.
>
> Perhaps you should submit a bug report? Both g77 and gcc come
> with extensive documentation, including on how and where to
> file bug reports.
I look at bug reports as a last option. With source, available,
that would be where I look first.
>
> >Maybe FORTRAN
> >requires a MAIN routine to trigger the counting??
>
> That might be. I don't know how profiling works in the gcc/g77
> environment (yet). You might try making your own C version of
> the f/runtime/libF77/main.c file, compiling it with -pg, and
> linking it ahead of libf2c.a on the command line, and see if
> that helps.
>
> So this could just become Yet Another Reason Not To Put main()
> In A Library. g77 already has a longish such list for libf2c
> improvements.
>
> >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.
>
> See if `g77 -v -pg ...' reports the same kind of switching to
> gcrt1.o and such as does `gcc -v -pg ...' on your system. If
> so, then I'd guess it's the main-not-compiled-with--pg problem
> suggested above.
The link shows gcrt1.o at the front and C profiles OK so
I think things are basically working. Question is what
is missing for FORTRAN. I'll do some more looking.
No obvious differences now. The xxx.o has _mcount in it,
and the link uses the correct gcrt1.o file. Maybe it's
a library issue?
Wes
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
[not found] <199805201453.IAA23638@ellpspace.math.ualberta.ca>
@ 1998-05-20 21:45 ` Wes Bauske
0 siblings, 0 replies; 12+ messages in thread
From: Wes Bauske @ 1998-05-20 21:45 UTC (permalink / raw)
To: Michal Jaegermann; +Cc: axp-list@redhat.com
Michal Jaegermann wrote:
>
> >
> > Is there a way to stop this from happening??
>
> Probably, with -W. I did not try but check docs.
>
> I did try to profile some Fortran using egcs. Nothing bombed but
> results were not really very reliable or useful.
>
> Michal
Just looked at the egcs home page and it says:
Target specific bugfixes:
Fix one x86 floating point code generation bug exposed by glibc2 builds.
Fix one x86 internal compiler error exposed by glibc2 builds.
Fix profiling bugs on the Alpha.
Fix ImageMagick & emacs 20.2 build problems on the Alpha.
Fix rs6000/ppc bug when converting values from integer types to floating point types.
Note the fix for Alphas. On to a new version of egcs...
Thanks for the input.
So I guess I'm not crazy after all....
Wes
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-20 21:40 ` Wes Bauske
@ 1998-05-21 1:38 ` Craig Burley
1998-05-21 2:56 ` Wes Bauske
0 siblings, 1 reply; 12+ messages in thread
From: Craig Burley @ 1998-05-21 1:38 UTC (permalink / raw)
To: axp-list
>Craig Burley wrote:
>>
>> >>From what I've used in the past, '-p' is for prof, '-pg' is for
>> >gprof, and only gprof exists on my system.
>>
>> You're talking about the gcc and g77 commands there. What gcc and
>> g77 accept for options is not always directly related to what
>> the internal programs cc1 and f771 accept. There are some similarities,
>> but it's incorrect to assume that any option you pass to gcc or g77
>> must necessarily be passed "unmolested" through to cc1 or f771
>> (or cc1plus or cc1obj, etc.).
>
>Wonderful. Another way to confuse a user.
Well, users who might get confused shouldn't use -v -- or Fortran,
gcc, or UNIX, etc. for that matter. :)
But, if you have some recommendations, or, ideally, patches to offer
to reduce this problem -- which, BTW, I don't recall seeing anybody
else run into -- submit them to the appropriate address, by all
means! I'm all for making products less confusing. Note that these
patches/recommendations could target the docs, not necessarily
the ways the products work.
>I'm only looking at symptoms. I make no claims that what
>I see and what is happening are necessarily related.
All I can say is that your original email seemed to say exactly
that. Chalk it up to a misunderstanding, I guess.
>> Perhaps you should submit a bug report? Both g77 and gcc come
>> with extensive documentation, including on how and where to
>> file bug reports.
>
>I look at bug reports as a last option. With source, available,
>that would be where I look first.
Hmm, though you should be aware that, in effect, you submitted
a bug report to a list that contains a small subset of the people
who *normally* would see a properly submitted bug report, and
thus excluded from your audience quite a number of people
(especially if it was egcs-related) who might have been able
to offer some real help that much quicker.
At least, it looked to *me* like you were trying to submit a
bug report saying `-p' was incorrectly passed to f771 instead
of `-pg'. If anyone else disagrees, I hope they'll speak up;
I could certainly use a lesson in how to avoid responding to
bug reports that aren't, so I can spend more time getting
productive work done.
>The link shows gcrt1.o at the front and C profiles OK so
>I think things are basically working. Question is what
>is missing for FORTRAN. I'll do some more looking.
>No obvious differences now. The xxx.o has _mcount in it,
>and the link uses the correct gcrt1.o file. Maybe it's
>a library issue?
Maybe the egcs fix to profiling for the Alpha that you learned
about after writing the above will address your problems, but
I still would hazard a guess that something might be specially
needed to make profiling work for Fortran, since you saw it work
well (enough, anyway) for C code but not at all for Fortran code.
It's a coincidence, though; I just got another profiling-related
question from a completely different source regarding a special
variant of g77 (for Solaris SPARC, not Alpha). Guess I might
have to learn about profiling Fortran code after all. :)
tq vm, (burley)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-21 1:38 ` Craig Burley
@ 1998-05-21 2:56 ` Wes Bauske
1998-05-21 3:55 ` Craig Burley
0 siblings, 1 reply; 12+ messages in thread
From: Wes Bauske @ 1998-05-21 2:56 UTC (permalink / raw)
To: axp-list
Craig Burley wrote:
>
> >Craig Burley wrote:
> >>
> >> >>From what I've used in the past, '-p' is for prof, '-pg' is for
> >> >gprof, and only gprof exists on my system.
> >>
> >> You're talking about the gcc and g77 commands there. What gcc and
> >> g77 accept for options is not always directly related to what
> >> the internal programs cc1 and f771 accept. There are some similarities,
> >> but it's incorrect to assume that any option you pass to gcc or g77
> >> must necessarily be passed "unmolested" through to cc1 or f771
> >> (or cc1plus or cc1obj, etc.).
> >
> >Wonderful. Another way to confuse a user.
>
> Well, users who might get confused shouldn't use -v -- or Fortran,
> gcc, or UNIX, etc. for that matter. :)
>
> But, if you have some recommendations, or, ideally, patches to offer
> to reduce this problem -- which, BTW, I don't recall seeing anybody
> else run into -- submit them to the appropriate address, by all
> means! I'm all for making products less confusing. Note that these
> patches/recommendations could target the docs, not necessarily
> the ways the products work.
>
Switching '-pg' to '-p' muddies the waters. Why pick a flag
already associated with different meaning from the users
point of view? Only reason I see is that gxx does not intend
to ever support the old mode and so just changed it's
meaning to the new mode of profiling in the internal code.
The docs should definitely stop referencing the prof binary
since it seems to have disappeared though.
If I see a need to submit a bug report, I will. Not to the point
yet that I understand what's wrong. Once I do, I'll let the
appropriate folks know. For now I'm just looking to see if
anyone else has had better luck with it than I have. So far,
it doesn't look like it. At least no one admits they have...
Maybe they don't give a sh*t...
> >I'm only looking at symptoms. I make no claims that what
> >I see and what is happening are necessarily related.
>
> All I can say is that your original email seemed to say exactly
> that. Chalk it up to a misunderstanding, I guess.
>
> >> Perhaps you should submit a bug report? Both g77 and gcc come
> >> with extensive documentation, including on how and where to
> >> file bug reports.
> >
> >I look at bug reports as a last option. With source, available,
> >that would be where I look first.
>
> Hmm, though you should be aware that, in effect, you submitted
> a bug report to a list that contains a small subset of the people
> who *normally* would see a properly submitted bug report, and
> thus excluded from your audience quite a number of people
> (especially if it was egcs-related) who might have been able
> to offer some real help that much quicker.
>
> At least, it looked to *me* like you were trying to submit a
> bug report saying `-p' was incorrectly passed to f771 instead
> of `-pg'. If anyone else disagrees, I hope they'll speak up;
> I could certainly use a lesson in how to avoid responding to
> bug reports that aren't, so I can spend more time getting
> productive work done.
Here is what I said:
"I've got binaries where I mix C/FORTRAN and am trying
to gprof them on a RH5.0 system. Strictly C programs
appear to profile fine after adding the '-pg' flag to the
compile/link. However, when I add this flag to g77,
it seems to convert it to '-p'. Not what I want to
have happen. Is this what it does?? If so, why??"
Looks to me like I asked if this is normal and if so
WHY? Since I know '-p' is different from '-pg', I
noticed it was doing something that looked odd.
English... great language to communicate in....
Think you implied the inverse of my statement about
'-p'. No where did I say gcc didn't do that. I just
said what I observed g77 doing....
>
> >The link shows gcrt1.o at the front and C profiles OK so
> >I think things are basically working. Question is what
> >is missing for FORTRAN. I'll do some more looking.
> >No obvious differences now. The xxx.o has _mcount in it,
> >and the link uses the correct gcrt1.o file. Maybe it's
> >a library issue?
>
> Maybe the egcs fix to profiling for the Alpha that you learned
> about after writing the above will address your problems, but
> I still would hazard a guess that something might be specially
> needed to make profiling work for Fortran, since you saw it work
> well (enough, anyway) for C code but not at all for Fortran code.
>
> It's a coincidence, though; I just got another profiling-related
> question from a completely different source regarding a special
> variant of g77 (for Solaris SPARC, not Alpha). Guess I might
> have to learn about profiling Fortran code after all. :)
>
egcs1.0.3a is no better than 1.0.2. Still studying the
problem and leaning toward a library problem of some sort,
like more than one version of _mcount being around and not
being compatible with each other. (a guess.... not a bug
report)
Wes
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-21 2:56 ` Wes Bauske
@ 1998-05-21 3:55 ` Craig Burley
1998-05-21 4:32 ` Wes Bauske
1998-05-21 5:37 ` Maurice Hilarius
0 siblings, 2 replies; 12+ messages in thread
From: Craig Burley @ 1998-05-21 3:55 UTC (permalink / raw)
To: axp-list
>Craig Burley wrote:
>>
>Switching '-pg' to '-p' muddies the waters. Why pick a flag
>already associated with different meaning from the users
>point of view? Only reason I see is that gxx does not intend
>to ever support the old mode and so just changed it's
>meaning to the new mode of profiling in the internal code.
>The docs should definitely stop referencing the prof binary
>since it seems to have disappeared though.
There's a *lot* of that sort of transformation of options going
on in the gcc driver (and its kin, including g77). cpp gets
passed very different options; so do cc1/f771/cc1plus; so does
as; so does ld.
It's a *driver*. Its job is to present a consistent user
interface, and, being a GNU product, that across a wide
variety of platforms, including those that might already have
non-GNU `prof' on them (not likely to include Linux systems,
is my guess).
It *might* be nice to get the programs under control of gcc to
accept exactly the same options gcc itself accepts, so they
need no transformation, but that's probably impossible. Certainly
making as and ld, often not GNU programs, accept the literal
options is impossible. Making any of that work with `specs' files
is probably impossible. Making gcc refuse to accept any options
or specifications it can't reliably pass to all these subprograms
without filtering would make gcc unusable for 99.9% of its
present audience.
The end result is that, no matter what we do, users will likely
see *something* they don't understand in the output of `g77 -v'.
(The same is true for the output of `gcc -S', or even `gcc -E'.
Expecting to read the output of these options without first
studying what the output is *supposed* to be is unwise, though
at least for -S and -E I've seen a few other people try to do so,
but not for -v.)
You can either take this as a suggestion to think apparent
symptoms through a bit more, or as more opportunity to claim
that gcc is somehow the "problem" here. So far, IMO, you haven't
persuaded anyone, certainly myself, about the latter. In
short, almost all output of any compiler is *going* to be
confusing to users who don't take the time to learn how to
properly understand that output -- especially output regarding
internal goings-on.
>If I see a need to submit a bug report, I will. Not to the point
>yet that I understand what's wrong. Once I do, I'll let the
>appropriate folks know. For now I'm just looking to see if
>anyone else has had better luck with it than I have. So far,
>it doesn't look like it. At least no one admits they have...
You *already* submitted what looked like a bug report, as I said
earlier, and to a list that included *some* of the "appropriate
folks", like myself.
>> At least, it looked to *me* like you were trying to submit a
>> bug report saying `-p' was incorrectly passed to f771 instead
>> of `-pg'. If anyone else disagrees, I hope they'll speak up;
>> I could certainly use a lesson in how to avoid responding to
>> bug reports that aren't, so I can spend more time getting
>> productive work done.
>
>Here is what I said:
>
>"I've got binaries where I mix C/FORTRAN and am trying
>to gprof them on a RH5.0 system. Strictly C programs
>appear to profile fine after adding the '-pg' flag to the
>compile/link. However, when I add this flag to g77,
>it seems to convert it to '-p'. Not what I want to
>have happen. Is this what it does?? If so, why??"
>
>Looks to me like I asked if this is normal and if so
>WHY? Since I know '-p' is different from '-pg', I
>noticed it was doing something that looked odd.
>English... great language to communicate in....
I know English, dammit. I worked as a technical writer for
several years, starting at the Senior level, moving up to
Lead, then Manager. All as an "ex"-programmer.
When you write "g77 does X. Not what I want to have happen",
that *is* a statement that g77 is doing something you don't
want -- it's a bug report, just a poorly worded one, which
is why I asked you *questions* about it.
I guess I'll just learn to ignore bug reports you file in
the future, here or elsewhere. I've wasted an awful lot of
time trying to explain the obvious here, and educate you
about how to properly ask questions and report bugs in
products.
Though, the alternative in this case was that I completely ignored
your original question in the first place, which could easily
result in the statement "g77 doesn't do profiling right because
it passes `-p' instead of `-pg' to the f771 driver" being spread
far and wide. That sort of thing *often* happens -- there are
web pages with obsolete, somewhat incorrect information about g77
that stemmed from initial, confused reports about its behavior
(and the same is surely true about many other products) -- so
it seemed appropriate *at the time* that I ask specific questions
regarding why you considered g77 passing `-p' to be a bug.
>Think you implied the inverse of my statement about
>'-p'. No where did I say gcc didn't do that. I just
>said what I observed g77 doing....
No, you didn't *just* say that. You said it was NOT WHAT YOU
WANTED TO HAVE HAPPEN. I can read English; please take some
time to learn to write what you mean, or at least have the
decency to admit that what you meant turned out to be wrong.
(In this case, g77 passing `-p' *does* appear to be what you
want to have happen. You'd also like profiling to work
generally; it doesn't; that appears to be a separate problem.)
If you want a clue about how to word a report like that,
consider this modest translation of the paragraph you
quoted above:
"I've got binaries where I mix C/FORTRAN and am trying
to gprof them on a RH5.0 system. Strictly C programs
appear to profile fine after adding the '-pg' flag to the
compile/link. [But strictly/mixed Fortran programs, compiled the
same way, don't profile properly at all (explain symptoms).]
I notice that when I add this flag to g77, it seems to convert
it to '-p'. [I didn't check whether gcc did that; I suppose
I should.] Is anyone aware of whether f771 needs the `-pg'
option passed to it for gprof to work? Besides that, is
anyone able to get g77 to output profilable programs, or
know why it might or might not work?"
The stuff in brackets is optional, depending on whether
they state facts you knew at the time.
If you thoughtfully compare what you wrote with the above,
you should be able to see why your original quote appeared
to be a bug report against *g77* because it wasn't faithfully
passing `-pg' as such to the f771 driver -- as you said, it
wasn't what you wanted to have happen. But you didn't say
*why* it wasn't what you wanted, and the construction of the
paragraph implied that this was why you were (presumably)
having trouble getting profiling working on your system.
You can either learn from this quietly, or continue avoiding to.
It's up to you.
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-21 3:55 ` Craig Burley
@ 1998-05-21 4:32 ` Wes Bauske
1998-05-21 5:37 ` Maurice Hilarius
1 sibling, 0 replies; 12+ messages in thread
From: Wes Bauske @ 1998-05-21 4:32 UTC (permalink / raw)
To: axp-list
Craig Burley wrote:
>
Tell you what. When I find the problem, and decide
someone else needs the solution, I'll give it
to them.
I'm only quiet when I think someone's not worth
talking to.(or/to any further)
EoD from my end.
"Practice random acts of kindness."
Wes
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-21 3:55 ` Craig Burley
1998-05-21 4:32 ` Wes Bauske
@ 1998-05-21 5:37 ` Maurice Hilarius
1998-05-21 15:26 ` Craig Burley
1 sibling, 1 reply; 12+ messages in thread
From: Maurice Hilarius @ 1998-05-21 5:37 UTC (permalink / raw)
To: axp-list
AHEM!!!
Gentlemen!!!!
Craig, Wes, I mean no offense, BUT:
While I agree with elements of what both of you said, is it productive to
have this conversation in a public forum?
Feelings are getting hurt, tempers are beginniong to flare up, and mostly
because of the peer-exposed face-saving aspect of where you guys are going.
I think you both are right/wrong/mean well/strive for knowledge, and mostly
fighting through communications and "thinking-while-writing" issues.
Consider this a virtual beer bought for you guys. Obviously you are both
very intelligent and hard-working individuals.
Now (PLEASE!) shake hands, return to your corners, step out at the bell,
and go chase some bugs in code, not each other..
OK?
Cheers,
+--------------------------------------------------------+
| Maurice Hilarius | The Past is History |
| | The Future is Mystery |
| | Today is a Gift |
| Phone (403) 456-1510 | That is why they call it |
| email:maurice@harddata.com | The Present |
+--------------------------------------------------------+
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: gprof on mixed gcc/g77 code
1998-05-21 5:37 ` Maurice Hilarius
@ 1998-05-21 15:26 ` Craig Burley
0 siblings, 0 replies; 12+ messages in thread
From: Craig Burley @ 1998-05-21 15:26 UTC (permalink / raw)
To: axp-list
>Craig, Wes, I mean no offense, BUT:
>While I agree with elements of what both of you said, is it productive to
>have this conversation in a public forum?
It is, in a normal, professional forum; it is *often* done to
ask people to clarify and properly re-file bug reports.
It is rare for such a request to be treated with such contempt, and
for some others who witness that contempt to claim that both people
are equally at fault.
>Feelings are getting hurt, tempers are beginniong to flare up, and mostly
>because of the peer-exposed face-saving aspect of where you guys are going.
I'm not trying to save face *at all*, and would appreciate it you
would either be specific in your criticisms of my attempts to improve
the quality of bug reports against products like g77, or simply
avoid making them in the first place.
>I think you both are right/wrong/mean well/strive for knowledge, and mostly
>fighting through communications and "thinking-while-writing" issues.
I disagree.
>Consider this a virtual beer bought for you guys. Obviously you are both
>very intelligent and hard-working individuals.
That's a nice sentiment, but you left out "professional". I believe
I've conducted myself fairly professionally and ethically. If you
have *specific* criticisms of how I handled this, you're welcome
to email me personally, but I believe my criticisms of the original
bug report(s) were professional, and appropriate for this list, as a
means to educate the list regarding how to properly formulate such
bug reports.
What exactly did I do wrong? Take the statement "not what I want to
have happen" as an indication that `-pg' might be incorrectly handled
by g77? Check it out on my Alpha platform, both in gcc and in g77,
with `-v'? Respond asking just *why* it was believed to be wrong?
Also ask for more details on the behavior, and for them to be reported
to the proper forum? Or is it that you just don't like it when
somebody stands up for themselves when told they can't read, instead
of folding? I mean, if you believe in the life philosophy "there are
no right answers", then that's all the explanation I need for your
stance; I don't believe in that.
>Now (PLEASE!) shake hands, return to your corners, step out at the bell,
>and go chase some bugs in code, not each other..
No thanks. I'm not in this business to get into pissing matches about
how to parse English, and don't appreciate having someone call into
question my ability to do so; nor to have my, IMO, quite-valuable
advice regarding how to submit bug reports and ask questions
about software thrown back in my face like that.
Had it been even *remotely* possible that I had misread the original
bug report as such, I would have immediately spotted it and
apologized, because that's what *I* do when I make goofs, either
in public or private. You can look up my recent posts in comp.lang.fortran
if you don't believe me -- but then, you might *also* notice that people
disagree by making specific, technical points, almost always in a
profession manner there, and when a few don't, the rest of that audience
has tended to object accordingly. I feel no need to save face; I got over
that kind of ego-boo some 15-20 years ago, and have definite recollections
of how much of a time-waster, among other things, it was, and how
widespread that tendency is (or was, anyway) among programmers.
What I *was* on this list for was to provide up-front info, where
needed, on the status of g77 for the Alpha, and to get the occasional
heads-up on Alpha issues so as to properly maintain my machine. I have
some good support for the latter; since the former appears to no longer
be welcome by present inhabitants of this list, at least coming from
me, I'll unsubscribe now. I've got too much email to read as it is
anyway. I believe there's at least one other g77 person reading
this list, at least there used to be, so this should not be considered
any great loss.
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1998-05-21 15:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199805201453.IAA23638@ellpspace.math.ualberta.ca>
1998-05-20 21:45 ` gprof on mixed gcc/g77 code Wes Bauske
1998-05-20 8:56 Wes Bauske
1998-05-20 15:13 ` Craig Burley
1998-05-20 18:44 ` Wes Bauske
1998-05-20 19:03 ` Craig Burley
1998-05-20 21:40 ` Wes Bauske
1998-05-21 1:38 ` Craig Burley
1998-05-21 2:56 ` Wes Bauske
1998-05-21 3:55 ` Craig Burley
1998-05-21 4:32 ` Wes Bauske
1998-05-21 5:37 ` Maurice Hilarius
1998-05-21 15:26 ` Craig Burley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox