Solved

segmentation

Posted on 2009-05-14
5
312 Views
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

0
Comment
Question by:kuntilanak
  • 3
  • 2
5 Comments
 
LVL 53

Expert Comment

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

Author Comment

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

Accepted Solution

by:
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.
0
 

Author Comment

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

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Transferring accumulated data from VAMT 2 to VAMT 3 3 68
AIX  NFS  question 1 118
Windows Deployment Server custom Drivers 4 60
IBMi supported MySQL versions. 2 27
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…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now