1. Memory addresses are virtual. There can be synonyms (multiple virtual addresses referencing the same location). There can be unmapped addresses. Accessing anything through a memory address requires a complicated translation process that has multiple failure modes.
Another way to say it would be, I am asking why we don't memory map registers the way we memory map files, for the same reasons (so the _processor_ knows where they would go when they need to be swapped out).
-
-
Maybe you can't _actually_ ever make that work in any kind of efficient way that isn't worse than just using explicit save and restore on thread switches, but I'm not sure I get why.
-
In much the same way that "self modifying code" is no longer a thing, "writing to the register memory without calling it a register" could also not be a thing, right - we do that sort of thing all the time.
- Show replies
New conversation -
-
-
You mean like “How to fake 1000 registers. http://aggregate”.ee.engr.uky.edu/LAR/micro05.pdf Always seemed like a neat idea.
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.