Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Physical/virtual memory question?

Options
  • 22-10-2009 10:22pm
    #1
    Closed Accounts Posts: 248 ✭✭


    When you reference memory addresses in an assembly language program or you view a program's executable in a debugger/disassembler the addresses you are using/viewing are virtual rather than physical. Is this correct?


Comments

  • Registered Users Posts: 1,916 ✭✭✭ronivek


    It depends entirely on a number of factors that are a little bit too complex to really go into so I'll just give you a straightforward answer;

    In general on any modern hardware/OS combination your programs will be using virtual addressing.


  • Registered Users Posts: 375 ✭✭unknownlegend


    bSlick wrote: »
    When you reference memory addresses in an assembly language program or you view a program's executable in a debugger/disassembler the addresses you are using/viewing are virtual rather than physical. Is this correct?

    This depends on the assembler language and the assembler compiler. Some languages will let you specify specific purpose built registers and locations in memory space but others have a layer of abstraction from the physical memory (barring say, registers) and use an addressing module to take care of this. I think you might be thinking of an 'absolute memory address' which is indeed physical and general storage which may be 'virtual' to the debugging environment. Check out 'http://www.osdata.com/topic/language/asm/address.htm' it might help you.

    Thanks.


Advertisement