harmony 鸿蒙Overview of ArkTS Runtime

  • 2025-06-06
  • 浏览 (3)

Overview of ArkTS Runtime

ArkTS Runtime is the default language runtime for applications on OpenHarmony. It executes bytecode and standard libraries for ArkTS, TS, and JS languages, and supports the interpreter, Ahead-of-Time (AOT), and Just-In-Time (JIT) for efficient execution. It also provides Node-API to enable multi-language hybrid development.

ArkTS Runtime is primarily composed of four subsystems:

  • Core subsystem: consists of the foundational runtime libraries that are language-agnostic, including the File component that carries bytecode, the Tooling component that supports Debugger functionality, and the Base library component responsible for adapting system calls.

  • Execution subsystem: includes the interpreter for executing Ark bytecode, fast-path inline caches, and file-based modular management for runtime execution.

  • Compiler subsystem: includes the stub compiler, an IR-based compilation optimization framework, an AOT static compiler, and an experimental JIT dynamic compiler.

  • Runtime subsystem: includes the following modules related to the execution of ArkTS/TS/JS:

    • Memory management: object allocator and garbage collector (CMS-GC and Partial-Compressing-GC for concurrent marking and partial memory compression)

    • Analysis tools: DFX, and profiling tools for CPU and heap analysis

    • Concurrency management: .abc file manager in the actor model

    • Standard libraries: standard libraries defined by ECMAScript, efficient container libraries, and object models

    • Other: asynchronous work queues, and Node-API that interact with C++

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS

harmony 鸿蒙Configuring arkOptions in build-profile.json5

harmony 鸿蒙Asynchronous Lock

harmony 鸿蒙Ark Bytecode File Format

harmony 鸿蒙Naming Conventions for Ark Bytecode Functions

harmony 鸿蒙Ark Bytecode Fundamentals

harmony 鸿蒙Overview of Ark Bytecode

harmony 鸿蒙Shared Container

harmony 鸿蒙Asynchronous Waiting

harmony 鸿蒙ArkTS Cross-Language Interaction

0  赞