Merge pull request #155 from wenhu1024/fix/readme

fix:  add `--init vectorAdd` to README linking example #156
This commit is contained in:
ZhouJing(周晶) 2024-12-06 21:21:15 +08:00 committed by GitHub
commit 248085fdbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ Then, run the commands listed as follows under the same directory.
Linking `crt0` and `libclc` Linking `crt0` and `libclc`
All the libclc workitem functions' implementation is included in `riscv32clc.o` All the libclc workitem functions' implementation is included in `riscv32clc.o`
```sh ```sh
./install/bin/ld.lld -o vecadd.riscv -T utils/ldscripts/ventus/elf32lriscv.ld vecadd.o ./install/lib/crt0.o ./install/lib/riscv32clc.o -L./install/lib -lworkitem --gc-sections ./install/bin/ld.lld -o vecadd.riscv -T utils/ldscripts/ventus/elf32lriscv.ld vecadd.o ./install/lib/crt0.o ./install/lib/riscv32clc.o -L./install/lib -lworkitem --gc-sections --init vectorAdd
``` ```
##### 4.1.3 Compile assembly code to object file (`.s` to `.o`) ##### 4.1.3 Compile assembly code to object file (`.s` to `.o`)