logoalt Hacker News

ranger_danger • today at 12:48 AM • 2 replies • view on HN

> Don't most microcontrollers support executing directly from flash?

Yes... I presume they meant XIP for multiple programs at once, since you'd need an MMU for that.


Replies

dmitrygr • today at 5:57 AM

> since you'd need an MMU for that.

Or PIC code... PalmOS 5 & 6 allowed multiple programs in same memory and they were simply compiled pic. MMU was not used

Some architectures (ARM, RISCV, aarch64) are well suited for this kind of code. Others are extremely poorly suited (x86, MIPS), but all CAN do it

actionfromafar • today at 12:54 AM

Or the program use relative addressing.