cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing large memories

nissim2
Associate
Posted on November 06, 2003 at 04:38

Accessing large memories

3 REPLIES 3
nissim2
Associate
Posted on May 17, 2011 at 11:35

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 routines

ritu
Associate II
Posted on May 17, 2011 at 11:35

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.

kapil
Associate II
Posted on May 17, 2011 at 11:35

And how will the int Record[50000] allocated and managed in the memory?