Open-source compiler will enter the ark Shenzhen University classroom

Recently Huawei officially open the ark compiler, according to reports, the open source compiler framework is part of the source code, including a compiler intermediate representation (IR, Intermediate Representation) and compiler implementation, while with other compiler binary components, to achieve Java aarch64 assembler program to process instructions.

After the open source code, on the one hand, developers can be based on open source + binary code, the compiler build a compiler tool chain, try to compile a Java program; on the other side, community participants can learn Ark compiler source code by IR and basic framework in the end compiler framework, familiar with the Ark of the compiler architecture ideas, and participate in, such as a contribution to end compiler optimization.

Soon there was news Shenzhen University is planning to disclose Ark compiler into the classroom, we take interviewed vice president and director of the School of Computer Software and Software Engineering Ming Zhong Cai Shubin compiler issues related to the ark, and the school authorities confirmed the messages.

Open Source China: how do you see the ark compiler technically?

Ming Zhong: I think, Ark compiler technology biggest change is the switch to the new compiler and operating mechanism, the original Android application side edge interpretation performed in-time compilation changed first and then optimize the overall static translation mode execution of pre-compiled, large magnitude enhance the operating efficiency of Android applications. It can be said that in recent years can deeply affect fundamental changes throughout the Andrews ecology. From the JIT compiler to improve the AOT compiler, the middle of a large number of technical and engineering problems need to overcome one by one, we are very gratifying to see that the compiler has explored the ark, so a road trip out of it.

Open Source China: Ark of the open-source compiler major publicity the IR (intermediate representation), what actually mean?

Description CHUNG: the compiler intermediate representation is a rear entire code analysis, optimization of the basic work, only good design can support the IR better code optimization processing. The overall design, Ark compilers are more concerned about statically compiled, so the program information IR design includes a lot more than LLVM, it will be very beneficial treatment stage Ark compiler optimizations in the code, we will be able to compile a more efficient code.

Note: LLVM (Low Level Virtual Machine, Low Level Virtual Machine) is a collection of compiler and tools technologies a modular and reusable. Provide support related to the compiler, the compiler can be used as a background to the use of languages that can be compiled programming language optimization, link optimization, online compiler optimization and code generation.

China Open Source: Open Source Ark compiler out of the content seems incomplete, this is how you think?

Ming Zhong: First, we can see that the Ark compiler has a full schedule of open-source program, turned out to be as an internal research and development projects, the necessary code in the open source before carding spend some time, we can fully understand this.

Second, while the ark compiler has done a lot of work to overcome a lot of difficulties, but also made some achievements, but compared with mature LLVM, or there is a gap. In the current domestic and international environment, in addition to the compiler's Ark project team needs to step up its own perfect time, we also need to leveraging our entire community to work together to build, can it be possible to form the entire self-control software ecosystem faster. So, Ark compiler first part of the open source approach we can fully understand.

In the analysis of the source of memory leak or spill, we institute has been conducting research team also achieved some good results, we are also willing to participate in the construction of the Ark compiler community together.

In addition, the Ark of the open-source compiler for our current personnel training and education reform is also very meaningful. IR design, RC specific optimization techniques can expand our teaching content. More importantly, on the basis of the Ark of the compiler, we are better able to cultivate self-control based on system software talent to meet the current requirements of the strategic development of our country.

Open Source China: Shenzhen University that is going to move the ark compiler college classroom?

Cai Shubin: This time we plan to move the ark compiler classroom is a very smooth, happy thing. On the one hand, student-centered output-oriented culture system capabilities of the computer is an important goal of our teaching.

In recent years, the ability to quickly upgrade the level of our students, the original compiler theory of teaching content can not begin to meet the learning needs of students. So, we plan to follow the course, adding more content compiler back-end, prompting the students to form a more complete and comprehensive computer system capabilities.

On the other hand, in the current domestic and international situation, self-control has become an important national development strategies. The compiler is a computer software system is very important foundation, self-controlled naturally become very important. At this time node, Ark compiler announced plans to open source. Through several communication down and Huawei engineers, we not only found a Huawei engineer is very enthusiastic, very willing to help us take advantage of the Ark compiler to compile improve teaching and design Ark IR and RC compiler optimized, we also happens to be the compilation example is the back-end content teaching.

On the whole, we have the cooperation with Huawei, the compiler Ark moved to the classroom is really a very successful and happy thing. We are also looking forward to follow-up with the Ark compiler team continued deeper cooperation, improve the whole building together Ark compiler community.

Guess you like

Origin www.oschina.net/news/109917/arkcompiler-news