[Ilugc] How to callculate the memory occupied by a c program when it is executing

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Wed Sep 30 22:51:18 2009

On Wed, Sep 30, 2009 at 11:10 AM, Balachandar
<balachandarlinks@xxxxxxxxx> wrote:

? I have some optimized c code snippets. I want to know how much memory it
takes before and after optimization.Is there any tool for it??

There are many tools to choose from:
    http://en.wikipedia.org/wiki/Memory_debugger

Valgrind is a popular choice.

GNU libc malloc has some debugging functionality built in, see the
malloc(3) man page.

- Raja

Other related posts: