Add "--xip" option for wamrc (#2336)
Add shorthand "--xip" option for wamrc, which is equal to "--enalbe-indirect-mode --disable-llvm-intrinsics"
This commit is contained in:
@ -7,8 +7,12 @@ Some IoT devices may require to run the AOT file from flash or ROM which is read
|
||||
The XIP file is an AOT file without (or with few) relocations to patch the AOT code (or text section). Developer can use the option `--enable-indirect-mode --disable-llvm-intrinsics` for wamrc to generate the AOT file, e.g.:
|
||||
```bash
|
||||
wamrc --enable-indirect-mode --disable-llvm-intrinsics -o <aot_file> <wasm_file>
|
||||
or
|
||||
wamrc --xip -o <aot_file> <wasm_file>
|
||||
```
|
||||
|
||||
Note: --xip is a short option for --enable-indirect-mode --disable-llvm-intrinsics
|
||||
|
||||
## Known issues
|
||||
|
||||
There may be some relocations to the ".rodata" like sections which require to patch the AOT code. More work will be done to resolve it in the future.
|
||||
|
||||
Reference in New Issue
Block a user