title: Can using Valgrind on Linux also help when the app is compiled on Solaris?
body: <p>I have written a C application that is destined to be on a Solaris SPARC system. However the majority of my development has been on my Mint Linux 64 bit machine.</p>
  
  <p>I have seen I have a small memory leak and have been using Valgrind on Linux to check it out.</p>
  
  <p>My question is: If I run Valgrind on Linux and make all the memory leak stuff 100% (or at least close to that), if I can compile the application on Solaris does it mean that it <em>should</em> also behave the same (meaning I do not have to use Solaris specific memory leak detection tools?)</p>
  
  <p>Reason I ask is I doesn't really have the time to learn all these profiling tools for each platform.....I am hoping that if Valgrind tells me to fix something that the fix will also work on Solaris?</p>
  
  <p>I know the memory management between Linux and Solaris would be quite different, but surely on memory leak detection they would be kind of the same?</p>
  
  <p>Any advice / help would be greatly appreciated ;-)</p>
  
  <p>Lynton</p>