What is the Ark compiler?
Ark Compiler is a system and application compilation and running mechanism launched by Huawei to improve the compilation efficiency of the Android system.
In April 2019, Huawei announced this technology for the first time at the Huawei P30 series domestic launch conference. (Recommended learning: PHP video tutorial)
Compiler is to translate "a computer language (usually a high-level language)" into "another computer language (usually a low-level language) )"program of. High-level computer languages are convenient for developers to write, read, communicate, and maintain, such as Pascal, C, C, Java, etc., while low-level machine languages are machine codes (Machine codes) that computers can directly interpret and run.
Huawei's Ark compiler converts JAVA and C/C used by Android application developers into machine code. According to Wang Chenglu, Huawei began to consider making compilers in 2009, “Because after HiSilicon made the chip, we needed our own compiler to truly unleash the capabilities of the chip. Starting in 2013, Huawei’s own self-developed compiler The compiler is called HCC."
According to the timetable, in 2012, Huawei established a compiler and programming language laboratory. In 2014, technology expert Fred Chow joined Huawei to be responsible for the main architecture of the compiler. , after ten years of exploration, Huawei finally launched the Ark compiler.
According to official data released by Huawei, compared with previous Android application development, Ark Compiler can improve system operation fluency by 24%, improve system responsiveness by 44%, and can also improve 60% smooth operation of third-party applications (Weibo Express Edition).
Eliminates cross-language calling overhead
Wang Chenglu explained to reporters in detail the working principle of the Ark compiler to improve fluency and responsiveness.
First of all, the Ark compiler is a multi-language joint optimization compiler, which "eliminates cross-language call overhead, which is one of the core reasons that affect Android performance overhead."
According to Wang Chenglu Introduction, currently 95% of APPs in the Android application market are developed in multiple languages: "The logic part is all Java code, but in order to enhance its capabilities, probably all APP developers will write a library in C for Java To call."
Java is an object-oriented programming language with the characteristics of simplicity, object-oriented, and distribution. Although its operating efficiency is not as good as C, it has the advantages of high development efficiency and stronger cross-platform. JAVA has become the first choice for Android development, and calling local C/C libraries through JNI is what developers are currently doing.
However, the use of interface calls between Java and C language will inevitably cause additional performance overhead; Wang Chenglu said that Huawei's Ark compiler compiles different language codes into a set of executable files in the development environment, and executes them like this higher efficiency.
Eliminates the virtual machine mechanism that affects performance and reclaims memory in real time
Wang Chenglu believes that the second major feature of Huawei's Ark compiler is the elimination of the virtual machine mechanism that affects performance .
In the development process of the Android system, virtual machines cannot be ignored: the Android system is built with Linux as the kernel. In order to reduce the difficulty of application development and adapt it to devices with different hardware configurations, Google A virtual machine is built on top of the Linux kernel. Android applications are developed using Java and run on the virtual machine.
Can flexibly realize performance optimization of different applications
Wang Chenglu said that the third highlight of the Ark compiler is that it can flexibly realize performance optimization of different applications.
He said that most of the existing Android compiled code runs in a virtual machine environment, and the creation of virtual machines comes from the same set of "templates", making it difficult to perform in-depth optimization: different applications have different optimization requirements. ; In contrast, the Ark compiler is different. Each application compiles and optimizes its own plan to form optimized machine codes for different applications. "It is equivalent to saying that we provide every pursuing application developer with It gives you an opportunity to make your own applications better, and is no longer limited by the limitations of the Android virtual machine."
For more PHP-related technical articles, please visit PHP Graphic Tutorial Column for learning!
The above is the detailed content of What is the Ark compiler?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The domestic AI dark horse DeepSeek has risen strongly, shocking the global AI industry! This Chinese artificial intelligence company, which has only been established for a year and a half, has won wide praise from global users for its free and open source mockups, DeepSeek-V3 and DeepSeek-R1. DeepSeek-R1 is now fully launched, with performance comparable to the official version of OpenAIo1! You can experience its powerful functions on the web page, APP and API interface. Download method: Supports iOS and Android systems, users can download it through the app store; the web version has also been officially opened! DeepSeek web version official entrance: ht

At the beginning of 2025, domestic AI "deepseek" made a stunning debut! This free and open source AI model has a performance comparable to the official version of OpenAI's o1, and has been fully launched on the web side, APP and API, supporting multi-terminal use of iOS, Android and web versions. In-depth search of deepseek official website and usage guide: official website address: https://www.deepseek.com/Using steps for web version: Click the link above to enter deepseek official website. Click the "Start Conversation" button on the homepage. For the first use, you need to log in with your mobile phone verification code. After logging in, you can enter the dialogue interface. deepseek is powerful, can write code, read file, and create code

DeepSeek: How to deal with the popular AI that is congested with servers? As a hot AI in 2025, DeepSeek is free and open source and has a performance comparable to the official version of OpenAIo1, which shows its popularity. However, high concurrency also brings the problem of server busyness. This article will analyze the reasons and provide coping strategies. DeepSeek web version entrance: https://www.deepseek.com/DeepSeek server busy reason: High concurrent access: DeepSeek's free and powerful features attract a large number of users to use at the same time, resulting in excessive server load. Cyber Attack: It is reported that DeepSeek has an impact on the US financial industry.