Browsing all articles in linux
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

Sep
23

How to count total line of code in whole project/directory?

In many case you will require to count total number of line of code in your project.So here i am going to introduce with one powerful tool for counting line of code. That is CLOC .

  ABOUT TOOL :

CLOC is open source project.  CLOC  is written entirely in Perl language and CLOC is almost portable .

ClOC can works on

  • many flavors of Linux,
  • Mac OS X,
  • AIX,
  • Solaris, IRIX,
  • z/OS

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