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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to