Posted in Mac OS X, Valgrind on March 17th, 2009 1 Comment »
Another month has passed since I last wrote about my work on the Mac OS X port of Valgrind. In that time 126 commits have been made to the DARWIN branch (and a similar number to the trunk). I’ve done a lot of them, but Julian Seward has found some time to work on the [...]
Posted in C, Correctness, Valgrind on March 13th, 2009 1 Comment »
Here’s what sounds like a simple question: in C, what’s the best way to convert a string representing an integer to an integer?
The good way
One way is to use the standard library function called strtol(). There are a number of similar functions, such as strtoll() (convert to a long long) and strtod (convert to a [...]
Posted in Mac OS X, Valgrind on March 12th, 2009 Comments Off
With Valgrind now working reasonably well on Darwin, it’s possible to run Valgrind on an iPhone. Well, not directly on an iPhone, because the Darwin port doesn’t work on ARM, but you can run Valgrind on x86 binaries built against the iPhone Simulator SDK.
However, it’s a little tricky, because you can’t run Valgrind from [...]