0
$\begingroup$

The system has same physical and virtual address space i.e. 32-bit. Are the logical address generated by CPU and address generated by MMU same?

$\endgroup$
  • 1
    $\begingroup$ What are you calling “logical address” and what's the difference with a virtual address? $\endgroup$ – Gilles 'SO- stop being evil' Sep 18 at 6:04
0
$\begingroup$

It can be but not necessarily.

The MMU can be setup to translate adresses. There is nothing stopping you from having swapping physical adresses between, say, two logical segments and still have the same amount of logical and physical adresses. Sounds a bit unusual to me, but not impossible.

$\endgroup$
  • $\begingroup$ On systems with 64 bit pointers, the logical address space is often laid out so that casting a 32 bit integer to a pointer can never produce a valid address. So -2GB to +4GB would not be available. Catches lots of bugs. So on a system with 16GB of non virtual memory, logical address space could reasonably be 4GB to 20GB. $\endgroup$ – gnasher729 Sep 18 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.