On 07/16/2013 12:17 PM, Carsten Bager wrote:
If you look at my example underneath, I depend on that a dynamic string always 
is assigned
memory space in one connected block.
As the compiler allows for assigning a string to a pchar, the strings need to be compatible to C strings. Thus: - The content starts at the location the pchar points to and fills consecutive addresses
 - a $0 character is appended after the last relevant character.

Of course the OS is free to use the mapped hardware RAM address in a way that for DMA the string content might come in separate chunks.

Is this what you mean ?

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

Reply via email to