• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Programming Language Runtime
2
3## Introduction
4
5The programming language runtime subsystem provides the compilation and execution environment for programs developed with JavaScript and C/C++. It also provides basic libraries that support the runtime, and runtime-associated APIs, compilers, and auxiliary tools. Modules in this subsystem are classified based on the currently supported programming languages: JavaScript and C/C++. Each module can be compiled independently and can be combined and separated based on development scenarios.
6
7This subsystem consists of the runtime, libraries, and compilers that support the running of  JavaScript and C/C++ programs, and provides the basic libraries, APIs, JavaScript engine, and a toolchain that supports language compilation.
8
9**Figure  1**  Subsystem architecture
10
11![](figures/subsystem-architecture-1.png "subsystem-architecture-1")
12
13## Directory Structure
14
15```
16/prebuilts/mingw-w64/ohos/linux-x86_64     # Cross-compilation toolchain for Linux platform
17    └── clang-mingw
18        ├── bin
19        ├── lib
20        ├── libexec
21        ├── NOTICE
22        ├── share
23        └── x86_64-w64-mingw32
24```
25
26## Constraints
27
281.  You are not allowed to add or modify the APIs without permission.
292.  The implementation of the JavaScript engine is restricted by the subsystem. There is no configuration item for external systems.
30
31## Usage
32
33Basic language capabilities are supported through library files. Some capabilities are integrated into Native, and JavaScript SDKs and integrated into DevEco Studio releases. For details about the usage, see the readme file of each module.
34
35## Repositories Involved
36
37The following list shows the repositories of third-party software and precompilation toolchains that are referenced:
38
39[/third\_party/boost](https://gitee.com/openharmony/third_party_boost)
40
41[/third\_party/quickjs](https://gitee.com/openharmony/third_party_quickjs)
42
43[/third\_party/jerryscript](https://gitee.com/openharmony/third_party_jerryscript)
44
45[/third\_party/mingw-w64](https://gitee.com/openharmony/third_party_mingw-w64)