Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

segmentation

Posted on 2009-05-14
5
Medium Priority
?
318 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
[X]
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
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 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.
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
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…
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.

598 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