Help me understand why page sizes are a power of 2?

Posted by eric on Stack Overflow See other posts from Stack Overflow or by eric
Published on 2009-09-01T15:51:33Z Indexed on 2010/05/02 6:47 UTC
Read the original article Hit count: 177

Answer I need help with is:

Recall that paging is implemented by breaking up an address into a page and offset number. It is most efficient to break the address into X page bits and Y offset bits, rather than perform arithmetic on the address to calculate the page number and offset. Because each bit position represents a power of 2, splitting an address between bits results in a page size that is a power of 2.

i don't quite understand this answer, can anyone give a simpler explanation?

© Stack Overflow or respective owner

Related posts about homework

Related posts about binary