- Let’s say that a system has 32 bit addressing and uses a 4KB page size. Write
ID: 3801614 • Letter: #
Question
- Let’s say that a system has 32 bit addressing and uses a 4KB page size. Write a c program that takes one argument from command line which is the virtual address(in decimal) and gives you the physical page and offset
Example is argument 21345
Output is
The address 21345 contains: page number = 5 offset = 865