[fpc-pascal] memory layout of arrays
Marc Santhoff
M.Santhoff at t-online.de
Thu Sep 14 11:00:08 CEST 2006
Hi,
when using arrays in C the layout of arrays is sort of flat, since
pointer arithmetics for accessing values works (e.g. "pointer += 4" for
32 bit values).
Is this the same for pascal/fpc? Do values of for example an integer
array sit in memory at 4 Byte boundaries?
I need to hand over arrays to a C library and have no influence on how
access is done internally (still und investigation). Currently the C lib
reads garbage from my array ...
TIA,
Marc
More information about the fpc-pascal
mailing list