Solved

segmentation

Posted on 2009-05-14
5
311 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
Comment Utility
Most likely in the code segment, if your architecture has one.
0
 

Author Comment

by:kuntilanak
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
That depends on the platform :) Check your platform documentation.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now