[fpc-pascal] Problems with valgrind

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Mon Oct 15 15:25:46 CEST 2012


On Oct 15, 2012, at 3:06 PM, Jonas Maebe wrote:

> 
> On 15 Oct 2012, at 14:08, Darius Blaszyk wrote:
> 
>> I'm trying to use valgrind for the first time seriously to profile my app. See output from console below;
>> 
> [snip]
>> After googling I found some remark about adding a -m32 flag with GCC. Is this the same issue I have here?
> 
> No, because -m32 is a Linux-specific flag. And Valgrind for Mac OS X by default supports both 32 and 64 bit binaries.
> 
>> What is the remedy?
> 
> I don't know. It works fine here on Mac OS X 10.6 with Valgrind 3.8.0:
> 
I found out that my valgrind (from MacPorts) does not support 32bit applications. The solution was to add -Px86_64 to commandline. I have added this tip to the wiki BTW, so it won't get forgotten.

> 
> You may want to look at the Instruments application that comes with Xcode though. That one offers a lot of different profiling options based on performance counters and sampling.
> 
Thanks! I will have a look. I already found Shark, but that was a bit confusing to me.

Regards, Darius


More information about the fpc-pascal mailing list