Mirror ram

This is a discussion on Mirror ram within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Elysia Sure, size doesn't matter, as long as I can force my2_array to be placed after my_array ...

  1. #16
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elysia View Post
    Sure, size doesn't matter, as long as I can force my2_array to be placed after my_array in virtual memory.
    It is POSSIBLY possible to do that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  2. #17
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    You could do it in your own OS, or you could patch an open-source kernel to do stuff like that. It is not possible to do it in any existing OS. Or, well, you could try with Linux's shmem mapping or Windows's VirtualAlloc. But it would be unreliable.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21