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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Physical/virtual memory question?

  • 22-10-2009 9: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,917 ✭✭✭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: 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