Posted on 2009-05-14
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Technology Partners: 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

Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
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.

762 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