Re: How does a processor generate an address?



Say for example we have 3 programs. A drawback here is that physical
memory is not enough to execute all 3. YOu mentioned in a multitasking
OS, we can load several pgms at once at diff P.A.'s. Based on your
explanation, this is the picture I get.

_________________
^ | | <------- Program 1(Starting address 1)
| | |
| | physical |
| | MEMORY | <------- Program 2(Starting address 2)
| | |
| | | <------- Program 3(Starting address 3)
Address 0x0 |________________|


What do you mean by "with all programs linked as if they were loaded
starting at address 0"? And why do we need to do this? Do programs
always need to run at the start of the address region?

Are the "Starting addresses" from the diagram above all "virtual
addresses"? In other words, they need to be translated to a phyical
address when its their turn to run.

Am I heading in the right direction? Your explanation was what I was
looking for, and I'm getting closer to understanding this, but not
quite.

Thank you!
Mary

.



Relevant Pages

  • Re: SCO spending lots of time in spin locks
    ... At this point I have seen same effect within scall/s, ... Explanation below from man pages (as you have ... Application memory pages has paged to disk and now the ... Fork uses COW: When application calls forkdata pages are actually ...
    (comp.unix.sco.programmer)
  • Re: BBC: Could water really have a memory?
    ... :> low-temperature thermoluminescence (or, to be more precise, a later paper ... to most of the "experienced chemists" in the audience. ... :> your explanation so that I can refresh my memory. ...
    (misc.health.alternative)
  • Re: What is a type?
    ... >> One problem with this explanation is that it relies ... > in memory somewhere. ... > as a way of describing the bits in the machine representation ... that the two `sizeof' operands have different sizes. ...
    (comp.lang.c)
  • Sony DSC-V1 - USB2 transfer rate
    ... I have a Sony DSC-V1 digital camera (prescribed as "USB-2 high speed") ... finally come back with the explanation that the camera itself only ... Therefore any memory stick media with read/write speeds unable to ... expensive) memory stick media such as pro and pro-duo (apart from using ...
    (microsoft.public.windowsxp.photos)
  • Re: Cross-platform virus?
    ... You asked for an explanation, and this looks like a pretty good ... Part may need to run under Wine, but it can then modify part to run ... to modify an executable (which if you're running wine with a vfat windows ... execute that can't be run by any normal loader. ...
    (Ubuntu)