From: "Mynampati, Venkata S." <MynamVS@nsc-msg01.network.com>
To: "'gcc-help@gcc.gnu.org'" <gcc-help@gcc.gnu.org>
Subject: How to tell compiler to use my_malloc inplace of normal 'malloc'
Date: Wed, 22 Aug 2001 14:42:00 -0000 [thread overview]
Message-ID: <A7E1C26945C8D211ADBF0008C709661A035F2B2A@nsc-msg02.network.com> (raw)
Hi,
My question is a bit confusing, but it pertains to what i read sometime
back, which is like this:
I read that while compiling i can tell the compiler to replace all mallocs
with my wrapper function called 'my_malloc', in which, i do something
and call malloc. I remember reading that i can use this facility to keep
track of whose using malloc and how many number of times.
i.e where ever 'malloc' is used, 'my_malloc' gets substituted.
Could you helping me how to achieve this using gcc?
[or may be i dreamt up this one]
Best Regards
Venkat
Worry about chances you miss when you don't even try.
next reply other threads:[~2001-08-22 14:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-22 14:42 Mynampati, Venkata S. [this message]
2001-08-22 15:12 ` Ryan T. Sammartino
2001-08-23 23:39 ` Alexandre Oliva
2001-08-23 7:45 Mynampati, Venkata S.
2001-08-23 8:38 ` John Love-Jensen
2001-08-23 8:04 Mirko Vogel
2001-08-23 8:26 ` John Love-Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A7E1C26945C8D211ADBF0008C709661A035F2B2A@nsc-msg02.network.com \
--to=mynamvs@nsc-msg01.network.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).