🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54313

gcc -pg

#54313
From: Tammie Nelson
Date: Tue, 11 Dec 1990 14:52
29 lines
1969 bytes
Hi again:

Now I've got a question about the -pg option.  This option should
generate extra code to write profile information for the program
gprof.  I would like to port FSF gprof to our SCO system and use it
with gcc -pg.  Unfortunately, gcc -pg doesn't seem to be supported.
We have gcc 1.37.0 ported to our system.  When I compile with gcc -p,
I get a program that generates the program mon.out.  This is correct.
However, when I compile with gcc -pg, I still get a program that
generates the file mon.out.  This is incorrect; it should generate the
file gmon.out.

I have looked through the code to find where the -pg option is
processed, and can't seem to find it.  (I was looking particularly in
toplev.c; I found the code that processes -p, but not -pg).
The documentation with 1.37.0 claims -pg is supported; is it missing,
or am I just not looking thoroughly enough?

Any help here would be greatly appreciated; I'm anxious to test gprof
on our system and can't without the -pg option!


Thanks,
Tammie Nelson

 == Tammie Nelson                    Bull HN Information Systems Inc. ==
 == (508) 294-5788                   300 Concord Road   826A          ==
 == tnelson@bubba.ma30.bull.com      Billerica, MA 01821              ==
Technical Details
Message-ID: <TNELSON.90Dec11095256@bubba.ma30.bull.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!wuarchive!usc!bbn.com!mips2!bubba!tnelson

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cae507095e9d0e18,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-12-11 06:52:56 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!wuarchive!usc!bbn.com!mips2!bubba!tnelson
From: tnelson@bubba.ma30.bull.com (Tammie Nelson)
Newsgroups: gnu.gcc.help
Subject: gcc -pg
Message-ID: <TNELSON.90Dec11095256@bubba.ma30.bull.com>
Date: 11 Dec 90 14:52:56 GMT
Sender: news@mips2.cr.bull.com (Usenet News Manager)
Reply-To: tnelson@bubba.ma30.bull.com
Distribution: gnu
Organization: Bull HN, Worldwide Information Systems, Billerica, Mass., USA
Lines: 29
Posted: Tue Dec 11 15:52:56 1990
Bcc: tnelson@bubba