2003-11-05 07:38 PM
2011-05-17 02:35 AM
we want to better understand external memory access and usage when writing in C.
If I create a the following (using the large C model): char szString1[50000]; char szString2[50000]; the compiler/linker will put them in different segements. Now I will do: memcpy(&szString1[400], szString2); Will this work or do I need to manage the paging myself. The important issue to understand is who is responsible to manage the paging of the external memory with regard to segmentation. Does the system handle correct address passing and actual management when using pointers to variables in the data segment, stack and stack of interrupt routines2011-05-17 02:35 AM
As long as you are allocating a DPR to the memory (external or internal) you are accessing . Paging will be handeled by the system itself. You can verify that from the list file which get generated.
2011-05-17 02:35 AM
And how will the int Record[50000] allocated and managed in the memory?