I wrote a C application designed to run on a Solaris SPARC system. However, most of my development was on my 64-bit Mint Linux machine.
I saw that I had a small memory leak, and I used Valgrind for Linux to check this.
My question is: if I ran Valgrind on Linux and did all 100% memory leaks (or at least close to that), if I can compile the application on Solaris, then it should also behave the same (which I don't need to use special tools for detecting Solaris memory leaks?)
The reason I'm asking for is that I don’t have time to study all these profiling tools for each platform ..... I hope that if Valgrind tells me to fix something, that the fix will also work on Solaris?
I know that memory management between Linux and Solaris would be completely different, but, of course, if they detected a memory leak, would they be the same?
Any advice / help is appreciated; -)
Linton
source
share