The first Ark compiler front-end tool- Ark JS runtime officially became open source in Huawei OpenHarmony. The compiler uses direct compilations of programming to machine codes on an operating system.
Also, it improves the running efficiency for Java and C programming languages. The key components include compilers, toolchains, and runtimes. Coming back to the components of Ark JS compiler that officially Huawei open-source OpenHarmony includes three files that are mentioned below-
- JS runtime
- runtime core
OpenHarmony is an open-source project control by the OpenAtom Foundation. The purpose of building the system is to make a full full-scenario platform for digital applications. Hardware collaboration and resource sharing, One-time development for multi-device deployment, and a unified OS for flexible deployment are some of the features of the OpenHarmony project.
Additionally, it supports a mini system (minimum memory 128 KiB), Small System (minimum memory 1 MiB), Standandard system (minimum memory 128 MB).
Ark JS components Information:
- The JS object allocator
- The garbage collector (GC)
- A standard library that is compliant with ECMAScript specifications
- ARK bytecode interpreter
- Inline caches that store hidden classes
- The ARK Foreign Function Interface (AFFI).
Runtime Core: Being a most common module of ARK runtime, it offers language-irrelevant runtime libraries, including ARK File, Tooling, and ARK Base. Furthermore, the ARK File stores bytecodes and information required for executing bytecodes. Moving ahead the tooling supports Debugger. Overall the ARK Base is responsible for fulfilling system calls.