mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 08:03:29 +00:00
9ce1d8b9ec
Signed-off-by: wuhailong <wuhailong22@huawei.com> Change-Id: Iada72acfeb61e61ab3cb324747a6d7d5180918f8
15 KiB
15 KiB
Using the Toolchain
The ARK front-end tools use the command line interaction mode and convert JS code into ARK bytecodes that can run on ARK runtime. The toolchain supports Windows, Linux, and macOS.
JS Bytecode Compiler
Front-end tools, converting JS source code into ARK bytecode, can be built by specifying the --build-target
with ark_ts2abc
.
Build tools:
$ $ ./build.sh --product-name rk3568 --build-target ets_frontend_build
$ cd out/rk3568/clang_x64/arkcompiler/ets_frontend/
$ ./es2abc [options] file.js
If no parameter is specified for [options], an ARK binary file is generated by default.
Disassembler ark_disasm
The ark_disasm disassembler converts binary ARK bytecodes into readable text ARK bytecodes.
Command:
ark_disasm [Option] Input file Output file
Specifies the path of the debug information output file. The default value is std::cout. |
|
Input file: ARK bytecodes in binary format
Output file: ARK bytecodes in text format