top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

can i run valgrind on source code of C-program to find memories leaks?

+1 vote
505 views

Instead of running on executable , i want to run on source code .... is it possible with valgrind or not ... please help how i can i run on source code ?

If not possible suggest me some alternate ways...

posted Aug 29, 2016 by Suchakravarthi Sripathi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I dont think you can run do that on source code using valgrind, may be try purify or any static code analysis tool.

1 Answer

+2 votes

Valgrind tool is used to find memory leaks for a binary/process. Unless you run a process, memory leaks can't be generated. Valgrind tool comes under the dynamic code analysis code. Klocworks tool is used for static analysis. Klocworks tool gives very good result but it is license tool.

answer Aug 29, 2016 by Vimal Kumar Mishra
Similar Questions
+2 votes

Let's say I have an exe-file (for example computer game) and need to forbid to run it until certain date or time during the day. Any 'manipulations' with file are allowed.

Could you, please, offer me a simple way of how to encode/decode such a file mostly in C or C++?

+3 votes

Is there any way to get the original source code from binary ?

+1 vote

Code should compile and print out itself.

+2 votes

Hello friends I am searching the Program to print source code as program output in C programming

...