On the last day of August, Huawei Ark Compiler Open Source official website officially launched (https://www.openarkcompiler.cn/home), the first time the framework source code is open to the outside world and provides environment configuration, developer guide, demo and other information download .

This open source is part of the source code of the compiler framework, including compiler intermediate representation (IR) and language compilation implementation, and with other compiler binary components, to achieve the compilation process of Java programs to aarch64 assembly instructions. Developers can build a compiler toolchain based on open source code + binary, and try to compile Java programs.

According to the timetable announced by Huawei, the follow-up will also open source compiler front-end and back-end; support Java Program compilation, compilation of JavaScript language applications, etc. The current official website is only the website during the incubation of the Ark compiler. “The official website after graduation is pending.”

▲ Ark compiler framework image from: Ark Compiled Organs Network


The Ark compiler is open sourced to developers around the world, so the official website and hosting platform are also open to global developers. The English website is already under development and beta, and is scheduled to go live in the fourth quarter of 2019.

It is necessary to review the concept of a boat compiler. As the name suggests, the compiler is equivalent to a translator, which translates the high-level language used by the programmer into a machine-readable code. At present, the application running of the Android system mainly adopts the mode of “translation” while executing, which consumes some resources and affects Operating efficiency, and Huawei’s Ark compiler optimizes this process, completing all code compilation in the development environment, so the application does not need to be compiled at runtime to directly send the operation instructions to the processor for execution, bringing the user The intuitive feeling is that the system is more streamlined and the application runs faster.

▲Image from: CNBETA

According to the test data of Huawei Lab, EMUI 9.1 system component only After System Huawei’s application of the Huawei Ark compiler, the system operation fluency increased by 24% and the system response performance increased by 44%.

It can be said that as an ordinary user, although we do not directly contact the Ark compiler, it is a direct beneficiary of this technology.

The Android version of Alipay has been greatly improved since the update speed and response speed. It was guessed by the netizens that the Ark compiler was used, although the official clarification was improved by the original container biochemistry and virtual machine tuning. The experience is used, but among the partners listed in the Ark Compiled Organs Network, Alipay is in the list, in addition to Sina Weibo, Taobao, Vibrato, QQ, and other commonly used applications.

The Ark compiler needs to play a practical role. It is the support of various application developers. If these big companies do develop a version based on the Ark, they will be able to bring more applications to “on board,” and then consumers will be able to Really enjoy the benefits of the Ark compiler.

If the Ark compiler achieves good results, it is also expected to drive the sales of Huawei mobile phones. At present, a number of Huawei and glory models support the Ark compiler. Of course, the success of the Ark compiler will undoubtedly lay a solid foundation for Hongmeng OS. The basics.

The title map is from: Ark Compiled Organ Network