提交 7a30d282 编写于 作者: S songqi

Add changelogs for using es2abc compiler in Type compileMode

Issue: I7NSYA
Tests: NA
Signed-off-by: Nsongqi <songqi32@huawei.com>
Change-Id: Ia2de2e919e9ff00cb1d78b66e66cfa87cba9d35f
上级 4af98086
# ArkCompiler Subsystem Changelog
## cl.ArkCompiler.1 type compileMode uses es2abc by default
The composition of ArkCompiler in sdk has ts2abc compiler and es2abc compiler, supporting compilation of ets/ts/js files.<br>
Compilation Mode Introduction:<br>
&emsp;Non-type compilation: convert ets/ts sourceCode into js sourceCode, and use ArkCompiler compiler es2abc to generate bytecode. <br>
&emsp;type compilation: convert ets/ts sourceCode into ts sourceCode, and use ArkCompiler compiler ts2abc (previous version)/es2abc (enabled in this version) to generate bytecode. <br>
Application Project hvigor version:<br>
&emsp;hvigorVersion field and @ohos/hvigor-ohos-plugin field in dependencies of hvigor-config.json5 file in the hvigor directory of the application project.<br>
Enable type compilation:<br>
&emsp;When the hvigor version is greater than or equal to 2.6.0-rc.9.s, the type compilation mode is used by default, or in the build-profile.json5 file of the same level directory as the application sourceCode (src directory), configure the "aotCompileMode": "type" option under the buildOption tag<br>
When type compilation is enabled and this version of the SDK is used, the ArkCompiler compiler es2abc will be used by default to compile the ts sourceCode to generate bytecode, and it is not recommended to use the old version SDK with ts2abc enabled for type compilation.<br>
**Change Impact**<br>
With DevEco Studio development, after the type compilation mode is enabled and the new version of the SDK is used, due to the change of the compilation mode and the change of the ArkCompiler compiler, application compilation failures and runtime crashes may occur.<br>
**Key API/Component Changes**<br>
type compileMode uses arkcompiler frontend compiler es2abc by default<br>
**Adaptation Guide**
1. When the hvigor version is greater than or equal to 2.6.0-rc.9.s, the developer needs to configure "aotCompileMode": "" in the build-profile.json5 file to switch to the original compilation mode (not type).
# ArkCompiler子系统ChangeLog
## cl.ArkCompiler.1 type编译模式默认使用es2abc
SDK中ArkCompiler有两个编译器支持ets/ts/js的编译,分别是ts2abc编译器和es2abc编译器。<br>
编译模式介绍:<br>
&emsp;非type编译:ets/ts源码转化为js源码,使用ArkCompiler编译器es2abc生成字节码。<br>
&emsp;type编译:ets/ts源码转化为ts源码,使用ArkCompiler编译器ts2abc(之前版本)/es2abc(此版本使能)生成字节码。<br>
应用工程hvigor版本信息查看:<br>
&emsp;应用工程hvigor目录hvigor-config.json5文件中hvigorVersion字段以及dependencies中@ohos/hvigor-ohos-plugin字段。<br>
开启type编译:<br>
&emsp;hvigor版本大于等于2.6.0-rc.9.s时默认使用type模式编译,或者应用源码(src目录)同级目录build-profile.json5文件中,buildOption标签下配置"aotCompileMode": "type"选项。<br>
当开启type编译且使用该版本的SDK时,将默认使用ArkCompiler编译器es2abc编译ts源码生成字节码,并且不推荐使用使能ts2abc的老版本SDK进行type编译。<br>
**变更影响**<br>
使用DevEco Studio进行应用开发,使能type编译模式并使用新版SDK后,由于编译模式的变更以及ArkCompiler编译器的变更,可能会出现应用编译失败,运行时Crash等。<br>
**关键的接口/组件变更**<br>
type编译模式默认使用ArkCompiler编译器es2abc<br>
**适配指导**<br>
1. hvigor版本大于等于2.6.0-rc.9.s时,切换原来的编译模式(非type),开发者需要在build-profile.json5文件中配置"aotCompileMode":""。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册