[fpc-pascal] Strings
Michael Schnell
mschnell at lumino.de
Mon Jul 22 10:43:27 CEST 2013
On 07/20/2013 01:19 PM, Noah Silva wrote:
> Wait, I'm slightly confused. It seems people are talking about two
> different things:
> 1. Continuous memory as seen by the program running.
> 2. Actually physically contiguous memory.
If you don't do hardware related things like DMA, you don't need to
bother about this difference.
>
> It was my understanding that strings and dynamic arrays are allocated
> as a single block, and thus from the program's point of view, their
> contents should be continuous.
Correct.
> (Short strings certainly are!).
> If the OS is using VM Mapping to convert two blocks of free memory
> into a single block for your program, I assume that would affect an
> array of byte just as much as a string. (Am I missing something?)
Correct.
-Michael
More information about the fpc-pascal
mailing list