🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52305

Profiling under gcc 2.3.1. Is it implemented??

#52305
From: N.G.Smith
Date: Mon, 30 Nov 1992 10:46
19 lines
1184 bytes
I am trying to obtain profiling statistics from gcc version 2.3.1 on
a machine running Sun OS 4.

Unfortunately when I compile with the `-p' or `-pg' flags I get a
message from the linker to the effect that `mcount' is undefined. I
find `mcount' in `gmon.c' but do not find it anywhere in the gcc
makefile. Is profiling implemented in gcc?

> g++ -target sun4 -lX11 -o g graph.o main.o misc.o node.o parse.o -lm
> ld: Undefined symbol
>    mcount
> collect: /usr/bin/ld returned 2 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `g'
> %

Thanks for any help,

Neil Smith.
Technical Details
Message-ID: <2401@eagle.ukc.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!rook.ukc.ac.uk!eagle.ukc.ac.uk!ngs

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,89e548256bdc6edd,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-11-30 03:16:44 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!rook.ukc.ac.uk!eagle.ukc.ac.uk!ngs
From: ngs@ukc.ac.uk (N.G.Smith)
Newsgroups: gnu.gcc.help
Subject: Profiling under gcc 2.3.1. Is it implemented??
Message-ID: <2401@eagle.ukc.ac.uk>
Date: 30 Nov 92 10:46:03 GMT
Sender: ngs@ukc.ac.uk
Organization: Computing Lab, University of Kent at Canterbury, UK.
Lines: 19
Nntp-Posting-Host: eagle.ukc.ac.uk