Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Martin Hoff 80f0801ef8 samples: Add silasb xg29_rb4412a to some sample.yaml with overlay 4 months ago
..
src samples: add no-timers configuration which is runtime tested 2 years ago
CMakeLists.txt
Kconfig samples: add no-timers configuration which is runtime tested 2 years ago
README.rst samples: fully migrate basic samples to the new Sphinx extension 2 years ago
arm.conf
common-runtime.conf samples/basic/minimal: make it smaller 2 years ago
common.conf
mt.conf kernel: rename 'dumb' scheduler and simply call it 'simple' 4 months ago
no-mt.conf
no-preempt.conf
no-timers.conf
prj.conf
riscv.conf samples/basic/minimal: make it smaller 2 years ago
sample.yaml samples: Add silasb xg29_rb4412a to some sample.yaml with overlay 4 months ago
x86.conf

README.rst

.. zephyr:code-sample:: minimal
:name: Minimal footprint

Measure Zephyr's minimal ROM footprint in different configurations.

Overview
********

This sample provides an empty ``main()`` and various configuration files that
can be used to measure Zephyr's minimal ROM footprint in different
configurations.

The following configuration files are available:

* :file:`mt.conf`: Enable multithreading
* :file:`no-mt.conf`: Disable multithreading
* :file:`no-preempt.conf`: Disable preemption
* :file:`no-timers.conf`: Disable timers
* :file:`arm.conf`: Arm-specific disabling of features

Building and measuring ROM size
*******************************

The following combinations are suggested for comparing ROM sizes in different
configurations. They all target the :ref:`reel_board` (Arm Aarch32 architecture).

* Multithreading enabled

* Reference ROM size: 7-8KB

.. zephyr-app-commands::
:zephyr-app: samples/basic/minimal
:host-os: unix
:board: reel_board
:build-dir: reel_board/mt/
:conf: "common.conf mt.conf arm.conf"
:goals: rom_report
:compact:

* Multithreading enabled, no preemption

* Reference ROM size: 7-8KB

.. zephyr-app-commands::
:zephyr-app: samples/basic/minimal
:host-os: unix
:board: reel_board
:build-dir: reel_board/mt-no-preempt/
:conf: "common.conf mt.conf no-preempt.conf arm.conf"
:goals: rom_report
:compact:

* Multithreading enabled, no preemption, timers disabled

* Reference ROM size: 3-4KB

.. zephyr-app-commands::
:zephyr-app: samples/basic/minimal
:host-os: unix
:board: reel_board
:build-dir: reel_board/mt-no-preempt-no-timers/
:conf: "common.conf mt.conf no-preempt.conf no-timers.conf arm.conf"
:goals: rom_report
:compact:

* Multithreading disabled, timers enabled

* Reference ROM size: 4-5KB

.. zephyr-app-commands::
:zephyr-app: samples/basic/minimal
:host-os: unix
:board: reel_board
:build-dir: reel_board/no-mt/
:conf: "common.conf no-mt.conf arm.conf"
:goals: rom_report
:compact:

* Multithreading disabled, timers disabled

* Reference ROM size: 2-3KB

.. zephyr-app-commands::
:zephyr-app: samples/basic/minimal
:host-os: unix
:board: reel_board
:build-dir: reel_board/no-mt-no-timers/
:conf: "common.conf no-mt.conf no-timers.conf arm.conf"
:goals: rom_report
:compact: