OLD | NEW |
1 Dart Kernel | 1 Dart Kernel |
2 =========== | 2 =========== |
3 **Dart Kernel** is a small high-level language derived from Dart. | 3 **Dart Kernel** is a small high-level language derived from Dart. |
4 It is designed for use as an intermediate format for whole-program analysis | 4 It is designed for use as an intermediate format for whole-program analysis |
5 and transformations, and as a frontend for codegen and execution backends. | 5 and transformations, and as a frontend for codegen and execution backends. |
6 | 6 |
7 The kernel language has in-memory representations in Dart and C++, and | 7 The kernel language has in-memory representations in Dart and C++, and |
8 can be serialized as binary or text. | 8 can be serialized as binary or text. |
9 | 9 |
10 Both the kernel language and its implementations are unstable and are under deve
lopment. | 10 Both the kernel language and its implementations are unstable and are under deve
lopment. |
11 | 11 |
12 This package contains the Dart part of the implementation and contains: | 12 This package contains the Dart part of the implementation and contains: |
13 - A transformable IR for the kernel language | 13 - A transformable IR for the kernel language |
14 - A frontend based on the analyzer | 14 - A frontend based on the analyzer |
15 - Serialization of kernel code | 15 - Serialization of kernel code |
16 | 16 |
| 17 _Note:_ The APIs in this package are in an early state; developers should be |
| 18 careful about depending on this package. |
| 19 |
17 Getting Kernel | 20 Getting Kernel |
18 ------------ | 21 ------------ |
19 | 22 |
20 Checkout the repository and run pub get: | 23 Checkout the repository and run pub get: |
21 ```bash | 24 ```bash |
22 git clone https://github.com/dart-lang/kernel | 25 git clone https://github.com/dart-lang/kernel |
23 cd kernel | 26 cd kernel |
24 pub get | 27 pub get |
25 ``` | 28 ``` |
26 | 29 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ```bash | 61 ```bash |
59 tool/regenerate_dill_files.dart --sdk <path to SDK checkout> | 62 tool/regenerate_dill_files.dart --sdk <path to SDK checkout> |
60 pub run test | 63 pub run test |
61 ``` | 64 ``` |
62 | 65 |
63 | 66 |
64 Linking | 67 Linking |
65 ------------------------- | 68 ------------------------- |
66 Linking from binary files is not yet implemented. In order to compile a whole | 69 Linking from binary files is not yet implemented. In order to compile a whole |
67 program, currently everything must be compiled from source at once. | 70 program, currently everything must be compiled from source at once. |
OLD | NEW |