Re: Producing memory traces of C storage allocation?

Friedrich Dominicus <frido@q-software-solutions.com>
17 Jul 2001 23:27:09 -0400

          From comp.compilers

Related articles
Producing memory traces of C storage allocation? ratatat@army.net (2001-06-28)
Re: Producing memory traces of C storage allocation? joachim_d@gmx.de (Joachim Durchholz) (2001-07-02)
Re: Producing memory traces of C storage allocation? graeme@epc.co.uk (Graeme Roy) (2001-07-02)
Re: Producing memory traces of C storage allocation? gneuner@dyn.com (2001-07-02)
Re: Producing memory traces of C storage allocation? frido@q-software-solutions.com (Friedrich Dominicus) (2001-07-17)
| List of all articles for this month |
From: Friedrich Dominicus <frido@q-software-solutions.com>
Newsgroups: comp.compilers
Date: 17 Jul 2001 23:27:09 -0400
Organization: Q Software Solutions GmbH
References: 01-06-065
Keywords: debug, storage
Posted-Date: 17 Jul 2001 23:27:09 EDT

ratatat@army.net (Corndog) writes:


> Hmm..this is quite the question Im sure, but does anyone know of a C
> compiler or is anyone able to tell me how to create one (roars of
> laughter) that is able to force the program being generated to log all
> calls to memory allocation routines like malloc and free in order for
> me to be able to determine the size of the heap at any point during
> the program execution?




There are a bunch of libraries available which were designed for that
especially. I suggest you use your trusted search engine and check out
the different options.




> I figure the only way I can get the actual
> size of the heap at any given point in time is to have the compiler
> intercept the memory allocation routines and do the work of wrappers
> for me. Please help..puhlease!


Why do you need to know that BTW?


Regards
Friedrich


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.