Browsing all articles tagged with Valgrind - Share Programming Tips
Oct
6

How to detect memory leakage in C program?

One more tips for c-programmer,embedded software engineers.

  • In many case you need to make sure that your programs is not going to leak any heap memory.
  • In Manny case  while debugging code you will find SEGMENTATION FAULT  and you cant debug your code ahead.

So in that all case our best friend is Valgrind 

Introduction:

The Valgrind tool suite provides a number of debugging and profiling tools that help you make your programs faster
and more correct. The most popular of these tools is called Memcheck. It can detect many memory-related errors
that are common in C and C++ programs and that can lead to crashes and unpredictable behaviour.

Download & install :

You can download this tool for For {x86,amd64,arm,ppc32,ppc64}-linux and {x86,amd64}-darwin (Mac OS X). from here.
read more

Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

35 posts
saurabh
21 posts
9 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link