Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Physical/virtual memory question?

  • 22-10-2009 09: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, Registered Users 2 Posts: 1,922 ✭✭✭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, Registered Users 2 Posts: 356 ✭✭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