Skip to content

Commit d501f9f

Browse files
committed
Fixed repeated command in Output Format
1 parent 383221c commit d501f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c_compiler.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ I then use GCC to assemble the generated assembly program (`test_program.s`), li
196196
I then use GCC to link the generated object file (`test_program.o`) with the driver program (`test_program_driver.c`), to produce an executable (`test_program`), like so:
197197

198198
```console
199-
> user@host:langproc-cw# riscv64-unknown-elf-gcc -march=rv32imfd -mabi=ilp32d -o test_program.o -c test_program.s
199+
> user@host:langproc-cw# riscv64-unknown-elf-gcc -march=rv32imfd -mabi=ilp32d -static -o test_program test_program.o test_program_driver.c
200200
```
201201

202202
I then use spike to simulate the executable on RISC-V, like so:

0 commit comments

Comments
 (0)