CrazyEngineers
  • memory management concept

    pratap singh, upendra

    pratap singh, upendra

    @pratap-singh-6xlmve
    Updated: Oct 22, 2024
    Views: 957
    hi,

    it is impossible to check absolute memory address at compile time to assure protection in terms of memory management.

    What does absolute memory address actually mean? can a memory address be relative? kindly enlighten

    regards,
    proffy
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Ankita Katdare

    AdministratorJun 5, 2012

    #-Link-Snipped-#
    First of all, yes! A memory address can be absolute or relative.
    An absolute address is a fixed address in memory. Whereas a relative address indicates a location by specifying a distance from another location.
    Absolute addresses are also called real addresses or machine addresses.

    I think this diagram will be helpful -

    Screen shot 2012-06-06 at 12.54.12 AM
    Are you sure? This action cannot be undone.
    Cancel
  • KenJackson

    MemberJun 6, 2012

    It's not clear what you're asking. What context? Are you writing a graphical app (mouse, pull-down menus, etc.) on a big popular OS like Windows or Linux? Or are you writing an embedded program like a program in a microcontroller that controls an elevator's lights?

    In my embedded world, we often know exactly the maximum RAM address, so we can test any pointer to make sure it's pointing to RAM and not into no-man's land. But programs running on Windows, Linux or Mac don't know what address they will be loaded at ahead of time.

    And on top of that, big OSes all use virtual memory mapping, so they can load your program at one physical address while it sees a different virtual address. In fact, if memory is fragmented, the program can be loaded into different pages all over the physical address space, but the program will see them all in sequence.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register