[fpc-pascal] Problems with valgrind

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Mon Oct 15 14:08:28 CEST 2012


Hi,

I'm trying to use valgrind for the first time seriously to profile my app. See output from console below;

Darius-Blaszyks-Mac-mini:fileio dariusblaszyk$ fpc -gv fileio.pp
Free Pascal Compiler version 2.7.1 [2012/05/18] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling fileio.pp
Assembling (pipe) fileio.s
Linking fileio
55 lines compiled, 1.9 sec
Darius-Blaszyks-Mac-mini:fileio dariusblaszyk$ valgrind --tool=callgrind ./fileio
valgrind: ./fileio: cannot execute binary file


After googling I found some remark about adding a -m32 flag with GCC. Is this the same issue I have here? What is the remedy?

Regards, Darius


More information about the fpc-pascal mailing list