摘要:
A method for managing and addressing an executable-in-place (XIP) program stored in a memory having a plurality of blocks includes the step of virtually storing a first portion of the XIP program in a first page of a paged virtual memory space and a second portion of the XIP program in a second page of the paged virtual memory space. The first portion of the XIP program is physically stored in a first block of the plurality of blocks and the second portion of the XIP program is physically stored in a second block of the plurality of blocks. A memory address mapping window is established with addresses of the first block. A page map for mapping the memory address mapping window to the first page is established. The first block is addressed for the first portion of the XIP program via the page map and the memory address mapping window. The memory address mapping window is updated with addresses of the second block and the page map is remapped to the second page when the second portion of the XIP program requires to be accessed such that the XIP program can be directly executed from the memory without being required to be stored contiguously in the memory and without being partitioned from other files that are not XIP programs.