Modification of compilation commands

------------------------------------
"rk3568" --> "hispark_taurus_standard"
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BP4B?from=project-issue

Signed-off-by: DaiH <daihuina1@huawei.com>
Change-Id: I76420f696d9f7a2174b9018a1f7754eaa1fdb4d8
This commit is contained in:
DaiH
2022-06-10 14:50:14 +08:00
parent 1472eb3033
commit c570991524
8 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ For more information, see: [ARK Runtime Subsystem](https://gitee.com/openharmony
## Build<a name="section137768191623"></a>
```
./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages
```
### Available APIs<a name="section175841548124517"></a>
@@ -68,7 +68,7 @@ For details about how to generate JS bytecodes, see [Using the Toolchain](docs/
To run bytecodes:
```
LD_LIBRARY_PATH=out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
LD_LIBRARY_PATH=out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
```
For more information, please see: [ARK-Runtime-Usage-Guide](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide.md).
+2 -2
View File
@@ -57,7 +57,7 @@
## 编译构建<a name="section137768191623"></a>
```
$./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
$./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages
```
### 接口说明<a name="section175841548124517"></a>
@@ -70,7 +70,7 @@ JS生成字节码参考[工具链使用](docs/using-the-toolchain-zh.md)
字节码执行:
```
LD_LIBRARY_PATH=out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
LD_LIBRARY_PATH=out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc
```
+8 -8
View File
@@ -37,7 +37,7 @@
2. 编译方舟前端,编译命令:
```
./build.sh --product-name rk3568 --build-target ark_ts2abc_build
./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
**说明**:上述编译命令为release版本,且执行路径为项目根目录。编译debug版本需增加编译选项:--gn-args is_debug=true。
@@ -55,20 +55,20 @@
1. 通过方舟前端生成hello-world.abc文件,编译命令:
```
node --expose-gc /your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js hello-world.js
node --expose-gc /your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js hello-world.js
```
2. 执行hello-world.abc文件:
1. 设置搜索路径:
```
export LD_LIBRARY_PATH= /your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/ark/ark_js_runtime:/your code path/out/rk3568/clang_x64/global/i18n_standard:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib
export LD_LIBRARY_PATH= /your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime:/your code path/out/hispark_taurus/clang_x64/global/i18n_standard:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib
```
2. 执行ark\_js\_vm
```
/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc
/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc
```
执行结果如下:
@@ -92,7 +92,7 @@
执行如下命令,结果输出到output.pa文件中:
```
./your code path/out/rk3568/clang_x64/ark/ark/ark_disasm hello-world.abc output.pa
./your code path/out/hispark_taurus/clang_x64/ark/ark/ark_disasm hello-world.abc output.pa
```
hello-world.abc反汇编结果如下:
@@ -139,13 +139,13 @@ hello-world.abc反汇编结果如下:
1. 编译方舟运行时,编译命令:
```
./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages
```
1. 编译方舟前端,编译命令:
```
./build.sh --product-name rk3568 --build-target ark_ts2abc_build
./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
**说明**:编译命令执行路径为项目根目录。
@@ -305,7 +305,7 @@ node
test262/harness/bin/run.js
--hostType=panda
--hostPath=python3
--hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda'
--hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda'
--threads=15
--mode=only strict mode
--timeout=60000
+7 -7
View File
@@ -48,20 +48,20 @@ Run the **hello-world.js** file.
1. Use the ARK frontend to create the **hello-world.abc** file.
```
node --expose-gc /your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js hello-world.js
node --expose-gc /your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js hello-world.js
```
2. Run the **hello-world.abc** file.
1. Set the search path.
```
export LD_LIBRARY_PATH= out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/global/i18n_standard:prebuilts/clang/ohos/linux-x86_64/llvm/lib
export LD_LIBRARY_PATH= out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/global/i18n_standard:prebuilts/clang/ohos/linux-x86_64/llvm/lib
```
2. Run **ark\_js\_vm**.
```
/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc
/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc
```
The execution result is as follows:
@@ -77,7 +77,7 @@ Run the **hello-world.js** file.
Run the following command to export the result to the **output** file:
```
./your code path/out/rk3568/clang_x64/ark/ark/ark_disasm hello-world.abc output
./your code path/out/hispark_taurus/clang_x64/ark/ark/ark_disasm hello-world.abc output
```
The output is as follows:
@@ -124,13 +124,13 @@ The output is as follows:
1. Run the following command to compile ARK runtime:
```
./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages
./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages
```
2. Run the following command to compile the ARK frontend:
```
./build.sh --product-name rk3568 --build-target ark_ts2abc_build
./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
**NOTE**: Run the compilation commands in the project root directory.
@@ -293,7 +293,7 @@ node
test262/harness/bin/run.js
--hostType=panda
--hostPath=python3
--hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda'
--hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda'
--threads=15
--mode=only strict mode
--timeout=60000
+6 -6
View File
@@ -14,7 +14,7 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考:
1. 首次编译:
```
./build.sh --product-name rk3568
./build.sh --product-name hispark_taurus_standard
```
2. 首次编译后增量编译方舟运行时:
@@ -37,7 +37,7 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考:
3. 首次编译后增量编译方舟前端:
```
./build.sh --product-name rk3568 --build-target ark_ts2abc_build
./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
**说明**:上述编译命令为release版本,且执行路径为项目根目录。编译debug版本需增加编译选项:--gn-args is_debug=true。
@@ -45,9 +45,9 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考:
方舟相关的二进制文件在如下路径:
```
out/rk3568/ark/ark/
out/rk3568/ark/ark_js_runtime/
out/rk3568/clang_x64/ark/ark/
out/rk3568/clang_x64/ark/ark_js_runtime
out/hispark_taurus/ark/ark/
out/hispark_taurus/ark/ark_js_runtime/
out/hispark_taurus/clang_x64/ark/ark/
out/hispark_taurus/clang_x64/ark/ark_js_runtime
```
+6 -6
View File
@@ -11,7 +11,7 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:
1. First compilation:
```
./build.sh --product-name rk3568
./build.sh --product-name hispark_taurus_standard
```
2. Compile an ARK runtime after the first compilation:
@@ -34,7 +34,7 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:
3. Compile the ARK frontend after the first compilation:
```
./build.sh --product-name rk3568 --build-target ark_ts2abc_build
./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
**NOTE**: Run the compilation commands in the project root directory.
@@ -42,8 +42,8 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see:
The binary files related to ARK are available in the following paths:
```
out/rk3568/ark/ark/
out/rk3568/ark/ark_js_runtime/
out/rk3568/clang_x64/ark/ark/
out/rk3568/clang_x64/ark/ark_js_runtime
out/hispark_taurus/ark/ark/
out/hispark_taurus/ark/ark_js_runtime/
out/hispark_taurus/clang_x64/ark/ark/
out/hispark_taurus/clang_x64/ark/ark_js_runtime
```
+2 -2
View File
@@ -9,13 +9,13 @@
构建编译:
```
$ ./build.sh --product-name rk3568 --build-target ark_ts2abc_build
$ ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build
```
安装`node``npm`后, 使用前端工具:
```
$ cd out/rk3568/clang_x64/ark/ark/build
$ cd out/hispark_taurus/clang_x64/ark/ark/build
$ npm install
$ node --expose-gc src/index.js [选项] file.js
```
+2 -2
View File
@@ -9,13 +9,13 @@ Front-end tools, converting JS source code into ARK bytecode, can be built by sp
Build tools:
```
$ ./build.sh --product-name rk3568 --build-target ark_ts2abc
$ ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc
```
Install `node` and `npm`, then use tools:
```
$ cd out/rk3568/clang_x64/ark/ark/build
$ cd out/hispark_taurus/clang_x64/ark/ark/build
$ npm install
$ node --expose-gc src/index.js [option] file.js
```