| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| boards/ | 29-Dec-2025 | - | 4 | 2 | ||
| src/ | 29-Dec-2025 | - | 17 | 8 | ||
| CMakeLists.txt | D | 29-Dec-2025 | 190 | 9 | 5 | |
| Kconfig | D | 29-Dec-2025 | 180 | 9 | 6 | |
| README.rst | D | 29-Dec-2025 | 2.4 KiB | 92 | 69 | |
| arm.conf | D | 29-Dec-2025 | 17 | 2 | 1 | |
| common-runtime.conf | D | 29-Dec-2025 | 405 | 24 | 16 | |
| common.conf | D | 29-Dec-2025 | 515 | 35 | 21 | |
| mt.conf | D | 29-Dec-2025 | 146 | 8 | 6 | |
| no-mt.conf | D | 29-Dec-2025 | 100 | 5 | 2 | |
| no-preempt.conf | D | 29-Dec-2025 | 32 | 2 | 1 | |
| no-sw-isr-table.conf | D | 29-Dec-2025 | 90 | 4 | 1 | |
| no-timers.conf | D | 29-Dec-2025 | 59 | 3 | 1 | |
| prj.conf | D | 29-Dec-2025 | 15 | 2 | 0 | |
| riscv.conf | D | 29-Dec-2025 | 19 | 2 | 1 | |
| sample.yaml | D | 29-Dec-2025 | 3.4 KiB | 120 | 119 | |
| x86.conf | D | 29-Dec-2025 | 17 | 2 | 1 |
README.rst
1.. zephyr:code-sample:: minimal 2 :name: Minimal footprint 3 4 Measure Zephyr's minimal ROM footprint in different configurations. 5 6Overview 7******** 8 9This sample provides an empty ``main()`` and various configuration files that 10can be used to measure Zephyr's minimal ROM footprint in different 11configurations. 12 13The following configuration files are available: 14 15* :file:`mt.conf`: Enable multithreading 16* :file:`no-mt.conf`: Disable multithreading 17* :file:`no-preempt.conf`: Disable preemption 18* :file:`no-timers.conf`: Disable timers 19* :file:`arm.conf`: Arm-specific disabling of features 20* :file:`no-sw-isr-table.conf`: Disable software isr table generation 21 22Building and measuring ROM size 23******************************* 24 25The following combinations are suggested for comparing ROM sizes in different 26configurations. They all target the :ref:`reel_board` (Arm Aarch32 architecture). 27 28* Multithreading enabled 29 30 * Reference ROM size: 7-8KB 31 32 .. zephyr-app-commands:: 33 :zephyr-app: samples/basic/minimal 34 :host-os: unix 35 :board: reel_board 36 :build-dir: reel_board/mt/ 37 :conf: "common.conf mt.conf arm.conf" 38 :goals: rom_report 39 :compact: 40 41* Multithreading enabled, no preemption 42 43 * Reference ROM size: 7-8KB 44 45 .. zephyr-app-commands:: 46 :zephyr-app: samples/basic/minimal 47 :host-os: unix 48 :board: reel_board 49 :build-dir: reel_board/mt-no-preempt/ 50 :conf: "common.conf mt.conf no-preempt.conf arm.conf" 51 :goals: rom_report 52 :compact: 53 54* Multithreading enabled, no preemption, timers disabled 55 56 * Reference ROM size: 3-4KB 57 58 .. zephyr-app-commands:: 59 :zephyr-app: samples/basic/minimal 60 :host-os: unix 61 :board: reel_board 62 :build-dir: reel_board/mt-no-preempt-no-timers/ 63 :conf: "common.conf mt.conf no-preempt.conf no-timers.conf arm.conf" 64 :goals: rom_report 65 :compact: 66 67* Multithreading disabled, timers enabled 68 69 * Reference ROM size: 4-5KB 70 71 .. zephyr-app-commands:: 72 :zephyr-app: samples/basic/minimal 73 :host-os: unix 74 :board: reel_board 75 :build-dir: reel_board/no-mt/ 76 :conf: "common.conf no-mt.conf arm.conf" 77 :goals: rom_report 78 :compact: 79 80* Multithreading disabled, timers disabled 81 82 * Reference ROM size: 2-3KB 83 84 .. zephyr-app-commands:: 85 :zephyr-app: samples/basic/minimal 86 :host-os: unix 87 :board: reel_board 88 :build-dir: reel_board/no-mt-no-timers/ 89 :conf: "common.conf no-mt.conf no-timers.conf arm.conf" 90 :goals: rom_report 91 :compact: 92