From: Jordi G. H. <jo...@oc...> - 2012-08-22 12:57:52
|
On 22 August 2012 07:11, dirk <dir...@co...> wrote: > I'm trying to learn valgrind for oct files... can anyone share a working > example I could study? Off the top of my head... Compile your oct file with debug symols: CXXFLAGS=-g mkoctfile foo.cc Write some m-script that executes code from your octfile echo "foo();" > myscript.m Run Octave with valgrind: valgrind octave -q myscript.m HTH, - Jordi G. H. |