Does Ark Compiler need to be installed on Android phones? Rumor: it is not an Android ART virtual machine

Huawei Ark Compiler does not need to be installed in the mobile phone, and it is not the ART virtual machine that comes with the mobile phone system upgrade.

is a compiler in the APP software online environment, which is operated by a dedicated program developer. APP projects need to be compiled through it when they are online in the mobile application store to reduce the memory consumption of the user's mobile phone.

1. Ark compiler is not an Android version of ART, it consumes less memory on the phone.

The difference between the Ark compiler and Android ART in processing source files

According to the details of the Huawei Developer Conference in 2019, the Ark compiler uses a statically compiled code method for software programs It can be directly compiled into machine language to run normally in the mobile phone operating environment.

If the Android native architecture wants the software program to run normally, it must rely on the ART virtual machine API service in the mobile phone operating environment to recompile the software source code. However, the ART virtual machine occupies a certain amount of memory space in the mobile phone when compiling the software program code. This is mainly related to its garbage collection (GC) mechanism. Even if it has better performance than the previous Dalvik virtual machine, it still exists. Excessive consumption of memory.

Besides, the use scenario of the Ark compiler is in the development and online environment of the project, while the real use scenario of the Android apk source file is in the mobile phone runtime environment, because the final execution of the Android apk source code file requires the help of the mobile phone runtime environment ART virtual machine.

2. The real users of the Ark compiler are not mobile phone users, but program developers.

Hongmeng System Service Layer-Ark Compiler Subsystem

After the Hongmeng system was launched on mobile devices in 2021, the developers of Hongmeng APP began to increase rapidly. After we completed the development of Hongmeng APP,Further testing is needed. After testing the project, the APP project needs to be launched on the Huawei application market. The entire operation process from project development to launch is always completed by the program developer.

Hongmeng APP needs to compile the ".har" package to ".app" format when uploading

Ark compiler is now a subsystem of the Hongmeng system service layer, it is now used in the project's online process . Because the program developer only packaged the project into the ".Har " suffix format in the development environment, and to make the project really online and running, it can only be compiled into the ".app " suffix format through the Ark compiler.

For these professional operations, ordinary mobile phone users are currently inaccessible and unable to understand them in depth, and they need to be completed by professional project developers alone.

Concluding remarks:

Ark compiler is now used by program developers, mainly to enable source files in formats such as ".Har" and ".apk" to be compiled into ".app" files when the project is launched It can be uploaded to the mobile phone operating environment and used by mobile phone users.

If the Ark compiler is really believed to be in the mobile device by some unknown people, wouldn't it be the same as the ART virtual machine of the Android mobile phone. After all, the function of the Ark compiler is to make the program source file become machine code after compilation, and it can run normally in the mobile phone operating environment directly.

.