🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52499

_mcount function

#52499
From: Joerg Viola
Date: Wed, 08 Jul 1992 21:24
14 lines
966 bytes
Hello !

I'm trying to add prof or gprof support to a port of gcc to OS/2.
I just detected that -p causes calls of a function _mcount at the beginning
of a function. How does _mcount know the name of the starting function ?
How does it remark the end of it ?

Where do I find the source of an _mcount function (if in assembler,
I would prefer 386 :-) ?

Because I did not subscribe to help-gcc, please reply to:
joerg_viola@ms.maus.de

Thanks in advance, joerg
Technical Details
Message-ID: <P6005@MS.maus.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ms.maus.DE!Joerg_Viola

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d601ffdfb105d8bf,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-07-09 17:16:25 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ms.maus.DE!Joerg_Viola
From: Joerg_Viola@ms.maus.DE (Joerg Viola)
Subject: _mcount function
Message-ID: <P6005@MS.maus.de>
Sender: daemon@cis.ohio-state.edu
Organization: Mausnet
Distribution: gnu
Date: Wed, 8 Jul 1992 21:24:00 GMT
Lines: 14