David Brown | ada28e1 | 2017-07-05 13:36:37 -0600 | [diff] [blame] | 1 | .. _hello_world: |
| 2 | |
| 3 | Hello World |
| 4 | ########### |
| 5 | |
| 6 | Overview |
| 7 | ******** |
| 8 | A simple Hello World example that can be used with any supported board and |
| 9 | prints 'Hello World' to the console. This application can be built into modes: |
| 10 | |
| 11 | * single thread |
| 12 | * multi threading |
| 13 | |
| 14 | Building and Running |
| 15 | ******************** |
| 16 | |
| 17 | This project outputs 'Hello World' to the console. It can be built and executed |
| 18 | on QEMU as follows: |
| 19 | |
| 20 | .. code-block:: console |
| 21 | |
| 22 | $ cd samples/hello_world |
| 23 | $ make run |
| 24 | |
| 25 | |
| 26 | To build the single thread version, use the supplied configuration file for |
| 27 | single thread: :file:`prj_single.conf`: |
| 28 | |
| 29 | .. code-block:: console |
| 30 | |
| 31 | $ make CONF_FILE=prj_single.conf run |
| 32 | |
| 33 | Sample Output |
| 34 | ============= |
| 35 | |
| 36 | .. code-block:: console |
| 37 | |
| 38 | Hello World! x86 |