Posted on 2009-05-14
Last Modified: 2013-11-14
I have a segment table below and a code the following.. my question is where is 240 in physical memory?
segment    base        bounds    RW
0               4000          6FF         10
1                 0              4FF         11
2               3000          FFF         11
3               -----          --------      00
240:   li a0, 1108
244:   jal foo
248:   .......

Open in new window

Question by:kuntilanak
  • 3
  • 2
LVL 53

Expert Comment

ID: 24386857
Most likely in the code segment, if your architecture has one.

Author Comment

ID: 24386975
but it's impossible to determine the exact physical address based on the segmentation table given above?
LVL 53

Accepted Solution

Infinity08 earned 500 total points
ID: 24387097
Depends on the platform and on the way you obtained the 240 address. If it's a relative address, then you need to know to which segment it belongs (the code segment). If it's an absolute address, then you already know the absolute address.

BUT : the absolute address is not necessarily a physical address. On most platforms, a process is assigned a virtual address space (starting at virtual address 0), which is mapped to a physical address space by the OS as needed.

Author Comment

ID: 24387140
how do you know which segment if belongs to? and how do you know it's the code segment
LVL 53

Expert Comment

ID: 24387187
That depends on the platform :) Check your platform documentation.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question