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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
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.

808 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