Lesson plan

Execute in place

In computer science, execute in place (XIP) is a method of executing programs directly from long-term storage rather than copying it into RAM. It is an extension of using shared memory to reduce the total amount of memory required. Its general effect is that the program text consumes no writable memory, saving it for dynamic data, and that all instances of the program are run from a single copy. For this to work, several criteria have to be met: * The storage must provide a similar interface to the CPU as regular memory (or an adaptive layer must be present). * This interface must provide sufficiently fast read operations with a random access pattern. * The file system, if one is used, needs to expose appropriate mapping functions. * The program must either be linked to be aware of the address the storage appears at in the system or be position-independent. * The program must not modify data within the loaded image. The storage requirements are usually met by using NOR flash memory or EEPROM, which can be byte-addressed for read operations, although it is a bit slower than normal system RAM in most setups.

Back to article

Article summary

In computer science, execute in place (XIP) is a method of executing programs directly from long-term storage rather than copying it into RAM. It is an extension of using shared memory to reduce the total amount of memory required. Its general effect is that the program text consumes no writable memory, saving it for dynamic data, and that all instances of the program are run from a single copy. For this to work, several criteria have to be met: * The storage must provide a similar interface to the CPU as regular memory (or an adaptive layer must be present). * This interface must provide sufficiently fast read operations with a random access pattern. * The file system, if one is used, needs to expose appropriate mapping functions. * The program must either be linked to be aware of the address the storage appears at in the system or be position-independent. * The program must not modify data within the loaded image. The storage requirements are usually met by using NOR flash memory or EEPROM, which can be byte-addressed for read operations, although it is a bit slower than normal system RAM in most setups.

Key claims

No claims recorded.

Discussion questions

  1. Summarise the article in your own words. Which single claim would you verify first, and why?
  2. Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
  3. If two sources disagreed about one of these facts, what would you need in order to trust one over the other?

Bibliography

No sources recorded.

Key claims and bibliography are generated from the same tracked claims and sources as the article page.