You can edit almost every page by Creating an account and confirming your email.

Ark Compiler

From EverybodyWiki Bios & Wiki



Ark Compiler
Developer(s)Huawei
Initial releaseAugust 9, 2019; 7 years ago (2019-08-09)
Written inArkTS, Cangjie, JS, C, C++
Engine
    Operating systemEMUI (HMS Apk apps), HarmonyOS, OpenHarmony, Oniro
    PlatformARM, RISC-V, x86, x64, LoongArch, Lingxi[1]
    LicenseMixed: Proprietary (HarmonyOS), Apache License (OpenHarmony, Oniro (OpenArkCompiler), Android (ArkCompiler)

    Search Ark Compiler on Amazon.

    Ark Compiler, also known as ArkCompiler, is a unified compilation and runtime platform by Huawei that supports joint compilation and running across programming languages and chip platforms, also operating systems of open-source OpenHarmony, Oniro, alongside proprietary HarmonyOS with single core system HarmonyOS NEXT included on native APP in Event-driven programming in a unified development environment and formerly built for Android-based EMUI for Huawei smartphones and tablets with HMS-enabled apk apps on AppGallery that improves app performance.[2] It supports a variety of dynamic and static programming languages including Java, C++,[3] JavaScript, TypeScript, and ArkTS. It is the compilation and runtime base that enables OpenHarmony, Oniro OS alongside HarmonyOS NEXT to run on multiple device forms such as smart devices, mobile phones, PCs, tablets, TVs, automobiles, and wearables. ArkCompiler consists of two parts, compiler toolchain and runtime.[4]

    Huawei initially open sourced Ark Compiler for Android platform on GitHub, on September 9, 2019, as they were transitioning away from the operating system via US sanctions.[5] Then the company, open sourced Ark Compiler with OpenArkCompiler as part of the Huawei Ark Compiler open source project (HACOSP) in early February 2022 [6] and ArkJS_runtime, in the previous year in September 2021 after two years of inception in August 2019.[7]

    Overview

    ArkCompiler has a built-in componentized and configurable multi-language compilation and runtime platform of OpenHarmony and HarmonyOS with HarmonyOS NEXT. It contains the core components such as the compiler, toolchain, and runtime. It supports compilation and running of high-level programming languages on the multi-chip platform. ArkCompiler JS Runtime provides the capability of compiling and running the JavaScript (JS) language on the OpenHarmony operating system side.

    ArkCompiler JS Runtime consists of two parts such as the JS compiler toolchain and JS runtime. The JS compiler toolchain compiles JS source code into ArkCompiler bytecodes. The JS runtime executes the generated ArkCompiler bytecodes.[8]

    ArkCompiler Runtime Core

    HarmonyOS Runtime
    Developer(s)Huawei
    Written inArkTS, Cangjie, C, C++, JS
    Engine
      Operating systemHarmonyOS
      PlatformARM, RISC-V, x86, x64, LoongArch, Lingxi[9]
      LicenseProprietary

      Search Ark Compiler on Amazon.

      Ark Runtime
      Developer(s)Huawei
      Written inArkTS
      Engine
        Operating systemHarmonyOS (HarmonyOS NEXT), OpenHarmony, Oniro
        PlatformARM, RISC-V, x86, x64, LoongArch, Lingxi[10]
        LicenseProprietary, Apache License (OpenHarmony ArkCompiler Runtime Core), Eclipse Public License (Oniro)

        Search Ark Compiler on Amazon.

        The common module of language runtime in the OpenHarmony operating system family is called ArkCompiler Runtime Core, also called Ark Runtime. It runs on top of HarmonyOS Runtime base on a dual-framework, alongside the single framework OpenHarmony-based HarmonyOS NEXT, which consists of language-independent basic runtime libraries. The ArkCompiler file provides bytecodes and information required for executing them. Tooling supports the runtime debugger. The Base is responsible for implementing platform related utilities. ISA function provides a common instruction set architecture that is language-independent, allowing it to run HarmonyOS applications regardless of differences in instruction sets.[11]

        ArkCompiler JS Runtime

        ArkCompiler JS Runtime is the default JS runtime on OpenHarmony. It supports ECMAScript libraries and efficient container libraries. It also provides a set of native APIs for C++ and JS interaction and a variety of garbage collectors that features high performance.[12]

        ArkCompiler eTS Runtime

        ArkCompiler eTS Runtime is a runtime used in ArkTS applications derived from former HarmonyOS 3.0/OpenHarmony 3.1 API 8 eTS (extendedTypeScript) on OpenHarmony as well as HarmonyOS apps taking advantage of custom OpenHarmony-based HarmonyOS NEXT core operating system. It contains an allocator and garbage collector (GC) for ArkTS/JS objects, a standard library that conforms to the ECMAScript specification, an interpreter for running the ARK Bytecode (abc) generated by ARK front-end components, an inline cache for acceleration, a statically typed compiler, a C++/C function interface for Native API (NAPI) application development at runtime, and other modules in Ahead-of-time compilation via DevEco Studio since version 3.1.1 on both HarmonyOS 3.1 SDK and OpenHarmony 3.2 SDK API 9.[13]

        ets_frontend

        The ets_frontend is a front-end tool in the ARK Runtime Subsystem which combines the ace-ets2bundle component that supports converting ETS programming language files into ARK bytecode files. They correspond with ArkTS app development in OpenHarmony and HarmonyOS development under HarmonyOS NEXT system.[14]

        ArkCompiler Toolchain

        The ArkCompiler Toolchain provides developers with debugging tools for ArkTS application development, such as the Debugger, CPUProfiler, and HeapProfiler. The debugging and tuning capabilities provided by the Ark Toolchain is used through DevEco Studio IDE that relies on the ArkCompiler Runtime to provide runtime-related information to developers.[15]

        References

        1. ↑ "OpenHarmony 3.0 successfully adapted Loongson 1C300B chip". Huawei Update. 15 December 2021. Retrieved December 15, 2021.
        2. ↑ Siddiqui, Aamir (June 22, 2019). "Ark Compiler Explained: How Huawei's App Compiler May Improve Android App Performance". XDA Developers. Retrieved 12 February 2024.
        3. ↑ 龚宇洁 (2019). "方舟编译器初探". 科技与创新 (23): 47–48. doi:10.15913/j.cnki.kjycx.2019.23.018. Retrieved 2025-05-03.
        4. ↑ "ArkCompiler Runtime". OpenAtom Gitee. Retrieved 12 February 2024.
        5. ↑ Amit (September 9, 2019). "Huawei Ark compiler officially open source from GitHub for self-hosting". Huawei Update. Retrieved 12 February 2024.
        6. ↑ Sarkar, Amy (February 9, 2022). "OpenArkCompiler 1.0 launched, Huawei Ark Compiler open source project (HACOSP)". HC Newsroom. Retrieved 12 February 2024.
        7. ↑ Mishra, Yash (September 7, 2021). "Ark Compiler JS runtime became open source in Huawei HarmonyOS". HC Newsroom. Retrieved 12 February 2024.
        8. ↑ "Overview". OpenAtom Gitee. Retrieved 12 February 2024.
        9. ↑ "OpenHarmony 3.0 successfully adapted Loongson 1C300B chip". Huawei Update. 15 December 2021. Retrieved December 15, 2021.
        10. ↑ "OpenHarmony 3.0 successfully adapted Loongson 1C300B chip". Huawei Update. 15 December 2021. Retrieved December 15, 2021.
        11. ↑ "Runtime Core". OpenAtom Gitee. Retrieved 12 February 2024.
        12. ↑ "ArkCompiler JS Runtime". OpenAtom Gitee. Retrieved 12 February 2024.
        13. ↑ "ArkCompiler JS Runtime - ets Runtime". OpenAtom Gitee. Retrieved 12 February 2024.
        14. ↑ "ets_frontend". OpenAtom Gitee. Retrieved 12 February 2024.
        15. ↑ "Ark toolchain components". OpenAtom Gitee. Retrieved 12 February 2024.


        This article "Ark Compiler" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Ark Compiler. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.