1.. zephyr:code-sample:: hello_world 2 :name: Hello World 3 4 Print "Hello World" to the console. 5 6Overview 7******** 8 9A simple sample that can be used with any :ref:`supported board <boards>` and 10prints "Hello World" to the console. 11 12Building and Running 13******************** 14 15This application can be built and executed on QEMU as follows: 16 17.. zephyr-app-commands:: 18 :zephyr-app: samples/hello_world 19 :host-os: unix 20 :board: qemu_x86 21 :goals: run 22 :compact: 23 24To build for another board, change "qemu_x86" above to that board's name. 25 26Sample Output 27============= 28 29.. code-block:: console 30 31 Hello World! x86 32 33Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`. 34