blob: 3001978f81b6a3372056759fac9703a5851e666a [file] [log] [blame] [view]
# Build Software
## Prerequisites
_Make sure you followed the install instructions to [prepare the system]({{< relref "install_instructions#system-preparation" >}}) and install the [compiler toolchain]({{< relref "install_instructions#compiler-toolchain" >}})._
## Building software
The following commands build the `boot_rom` and `hello_world` binaries:
```console
$ cd $REPO_TOP
$ make -C sw/device SW_DIR=boot_rom clean all
$ make -C sw/device SW_DIR=examples/hello_world clean all
```
The build process produces a variety of output files.
* `.elf`: the linked program in ELF format
* `.bin`: the linked program as plain binary
* `.dis`: the disassembled program
* `.vmem`: a Verilog memory file which can be read by `$readmemh()` in Verilog code
Please see [SW build flow]("/sw/device/doc/sw_build_flow.md") for more details.