execute-in-place · shipping · also XIP, eXecute-In-Place, execute in place

Execute-in-place

Execution of program instructions from their non-volatile storage location without first copying the executable code into a separate RAM image.

Related Observatory article: Execute-in-place on hesela.com

The system must provide an instruction-fetch path to the stored code. With serial flash, a controller can translate memory-mapped reads into flash transactions after the interface and read mode are configured. A chip's NOR label alone does not establish a working execute-in-place system. [1]

Execute-in-place does not eliminate RAM: caches, writable data, stacks and other runtime state can still use it. For a memory-mapped read-only filesystem, directly executed segments may require uncompressed, aligned storage while writable segments are copied to RAM. This differs from mapping a file backed by an SSD and fetching its pages into memory. [2]

Some flash documentation also calls a command-saving continuous-read mode XIP. That device feature can reduce read-command overhead, but it is not the complete system mechanism for executing stored instructions. [1]

Relations

related
nor-flash, nand-flash, byte-addressable-storage, memory-mapped-file, page-cache

Advantages

Limitations

Citations

  1. STMicroelectronics. AN4760, Quad-SPI interface for STM32 MCUs and MPUs, revision 5, sections 3.3.3, 3.4.1 and 6.2: execution and continuous read. (accessed 2026-10-18)
  2. Linux kernel documentation. Cramfs: Memory Mapped cramfs image. Direct execution of aligned, uncompressed read-only segments and RAM for writable data. (accessed 2026-10-18)
  3. Infineon. Implementation of Program/Erase Suspend and Resume Operations in Serial NOR Flash. Busy-array access and suspend restrictions. (accessed 2026-10-18)

JSON: /data/terms/execute-in-place.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Execute-in-place. Hesela. 2026-10-18. https://hesela.dev/terms/execute-in-place/