Skip to main content
nissim2
Associate
November 6, 2003
Question

Accessing large memories

  • November 6, 2003
  • 3 replies
  • 825 views
Posted on November 06, 2003 at 04:38

Accessing large memories

This topic has been closed for replies.

3 replies

nissim2
nissim2Author
Associate
May 17, 2011
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

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

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

ritu
Visitor II
May 17, 2011
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.