[fpc-pascal] Mangle name in fpc-FreeBSD ?

Marc Santhoff M.Santhoff at web.de
Sun Mar 20 15:10:19 CET 2016

On So, 2016-03-20 at 14:27 +0100, Ewald wrote:

> Could this be related to pointer trucation? The man page of dlopen tells
> us that the return value is a pointer (hence the return value of
> LoadLibrary has the same width). In your example you used an integer. Is
> sizeof(Integer) = sizeof(Pointer) of your system?
> If for example, you are missing the upper four bytes of the pointer, the
> above message makes sense.

Good point:

marc at puma:/home/marc/program/Test_fpc/LoadLibrary > uname -mrs
FreeBSD 9.1-STABLE amd64

marc at puma:/home/marc/program/Test_fpc/LoadLibrary > ./pointersize
pointersize:     8
size of integer: 2

marc at puma:/home/marc/program/Test_fpc/LoadLibrary > cat pointersize.pas 
program pointersize;
  writeln('pointersize:     ' + inttostr(sizeof(pointer)));
  writeln('size of integer: ' + inttostr(sizeof(integer)));

Marc Santhoff <M.Santhoff at web.de>

More information about the fpc-pascal mailing list