diff --git a/README.md b/README.md index 09b5f3b20e89cc538c123bdcf95d92d8019e06ba..ae591472d064b7e9d112f7f4fd200a1471cf85b0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ As a common module of ARK runtime, Runtime consists of some basic language-irrel ├── libziparchive # provides APIs for reading and using zip files implemented by miniz. ├── panda # CLI tool used to execute ARK bytecode files (*.abc). ├── pandastdlib # Standard libraries wrote by the ARK assembler. -├── resources # CI jobs description files. ├── runtime # ARK runtime command module. ├── scripts # CI scripts. ├── templates # Ruby templates and scripts used to process command line options, loggers, error messages, and events. @@ -70,6 +69,11 @@ ark_asm [Option] Input file Output file

Specifies the log file output path after log printing is enabled.

+tr id="row1015112763020">

-optimize

+ +

Runs the bytecode optimization.

+ +

--optimize

Enables compilation optimization.

@@ -92,14 +96,14 @@ Input file: ARK bytecodes in text format Output file: ARK bytecodes in binary format -Disassembler ark\_dissam +Disassembler ark\_disasm -The ark\_dissam disassembler converts a bytecode file in binary format into a text ARK bytecode file. +The ark\_disasm disassembler converts a bytecode file in binary format into a text ARK bytecode file. Command: ``` -ark_dissam [Option] Input file Output file +ark_disasm [Option] Input file Output file ``` @@ -138,6 +142,8 @@ Output file: ARK bytecodes in text format ## Repositories Involved +[ARK Runtime Usage Guide](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide.md) + [ARK Runtime Subsystem](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Subsystem.md) **[ark/runtime\_core](README_zh.md)** @@ -145,4 +151,3 @@ Output file: ARK bytecodes in text format [ark/js\_runtime](https://gitee.com/openharmony/ark_js_runtime/blob/master/README.md) [ark/ts2abc](https://gitee.com/openharmony/ark_js_runtime/blob/master/README.md) - diff --git a/README_zh.md b/README_zh.md index 2873a55bc50f83fe1bdd14f9240ca1395cc486db..85fd3fed42c94183be380b49bac69eb468f84266 100644 --- a/README_zh.md +++ b/README_zh.md @@ -17,17 +17,16 @@ Runtime组件是方舟运行时的公共组件,主要包括一些语言无关 ├── cmake # cmake脚本,包含工具链文件和用于定义构建和测试目标的常用cmake函数 ├── CMakeLists.txt # cmake主入口文件 ├── disassembler # 反汇编器,将二进制格式的方舟字节码文件(*.abc)转换为文本格式的方舟字节码文件(*.pa) -├── docs # 包含语言前端、方舟文件格式和运行时的设计文档。 +├── docs # 包含语言前端、方舟文件格式和运行时的设计文档 ├── dprof # 用于ARK运行时搜集profile数据 ├── gn # GN模板和配置文件 ├── isa # 字节码ISA描述文件YAML,和ruby脚本和模板 -├── ldscripts # 包含链接器脚本,用于在非PIE可执行文件中放置4GB以上的ELF section。 +├── ldscripts # 包含链接器脚本,用于在非PIE可执行文件中放置4GB以上的ELF section ├── libpandabase # ARK运行时基本库,包含:日志、同步原语、公共数据结构等 ├── libpandafile # 二进制格式的方舟字节码文件(*.abc)源码仓 -├── libziparchive # 提供读取和使用miniz的ZIP压缩文件的API。 -├── panda # CLI工具,用于执行方舟字节码文件(*.abc)文件 +├── libziparchive # 提供读取和使用miniz的ZIP压缩文件的API +├── panda # CLI工具,用于执行方舟字节码文件(*.abc) ├── pandastdlib # 通过方舟汇编编写的标准库 -├── resources # CI jobs描述文件 ├── runtime # ARK运行时公共组件 ├── scripts # CI脚本 ├── templates # ruby模板和脚本,处理包括:命令行选项、记录器组件、错误消息、事件等 @@ -70,6 +69,11 @@ ark_asm [选项] 输入文件 输出文件

使能log打印后,指定log文件输出路径

+

--optimize

+ +

执行字节码优化

+ +

--size-stat

统计并打印出转换后方舟字节码信息

@@ -89,12 +93,12 @@ ark_asm [选项] 输入文件 输出文件 反汇编器工具概述 -工具名称为ark\_dissam,用于将二进制格式的方舟字节码文件转换为可读的文本格式的方舟字节码文件。 +工具名称为ark\_disasm,用于将二进制格式的方舟字节码文件转换为可读的文本格式的方舟字节码文件。 命令行格式: ``` -ark_dissam [选项] 输入文件 输出文件 +ark_disasm [选项] 输入文件 输出文件 ``` @@ -133,6 +137,8 @@ ark_dissam [选项] 输入文件 输出文件 ## 相关仓 +[方舟运行时使用指南](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide-zh.md) + [方舟运行时子系统](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Subsystem-zh.md) **[ark/runtime\_core](README_zh.md)** @@ -140,4 +146,3 @@ ark_dissam [选项] 输入文件 输出文件 [ark/js\_runtime](https://gitee.com/openharmony/ark_js_runtime/blob/master/README_zh.md) [ark/ts2abc](https://gitee.com/openharmony/ark_ts2abc/blob/master/README_zh.md) -