You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Building-Dart-SDK-for-ARM-or-RISC-V.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,17 @@
2
2
3
3
The Dart VM runs on a variety of ARM processors on Linux and Android. This document explains how to build the Dart VM and SDK to target these platforms.
4
4
5
-
> **Note**: You must follow the steps in [Building.md](https://github.com/dart-lang/sdk/blob/main/docs/Building.md) to set up the environment and properly fetch the source code. Cloning the repository or obtaining the source code through other means will not result in a successful build.
5
+
> **Note**: You must follow the steps in [Building.md](Building.md) to set up the environment and properly fetch the source code. Cloning the repository or obtaining the source code through other means will not result in a successful build.
6
6
7
7
# Cross-compiling
8
8
9
-
The build scripts download a Clang toolchain that can target IA32, X64, ARM, ARM64 or RISCV64 and run on an X64 or ARM64 host. For these cases, you do not need to install a cross-compiler yourself. For other cases, like building on a RISCV64 host or targeting RISCV32, you will need to manually install a toolchain.
9
+
The build scripts download a Clang toolchain that can target X64, ARM, ARM64 or RISCV64 and run on an X64 or ARM64 host. For these cases, you do not need to install a cross-compiler yourself. For other cases, like building on a RISCV64 host or targeting RISCV32, you will need to manually install a toolchain.
10
10
11
11
## Linux
12
12
13
13
If you are running Debian/Ubuntu, you can obtain a cross-compiler by doing the following:
14
14
15
15
```bash
16
-
$ sudo apt-get install g++-i686-linux-gnu # To target ia32
17
16
$ sudo apt-get install g++-x86-64-linux-gnu # To target x64
18
17
$ sudo apt-get install g++-arm-linux-gnueabihf # To target arm
19
18
$ sudo apt-get install g++-aarch64-linux-gnu # To target arm64
You can also produce only a Dart VM runtime, no SDK, by replacing `create_sdk` with `runtime`. This process involves also building a VM that targets ia32/x64, which is used to generate a few parts of the SDK.
38
+
You can also produce only a Dart VM runtime, no SDK, by replacing `create_sdk` with `runtime`. This process involves also building a VM that targets x64, which is used to generate a few parts of the SDK.
40
39
41
40
You can use a different toolchain using the -t switch. For example, if the path to your gcc is /path/to/toolchain/prefix-gcc, then you'd invoke the build script with:
42
41
@@ -63,7 +62,7 @@ You can create Debian packages targeting ARM or RISC-V as follows:
63
62
64
63
```
65
64
$ ./tools/linux_dist_support/create_tarball.py
66
-
$ ./tools/linux_dist_support/create_debian_packages.py -a {ia32, x64, arm, arm64, riscv64}
65
+
$ ./tools/linux_dist_support/create_debian_packages.py -a {x64, arm, arm64, riscv64}
Copy file name to clipboardExpand all lines: docs/Building-the-Dart-VM-for-Android.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Run gclient sync to install the Android NDK and SDK. This may take 10 minutes or
30
30
31
31
Once you've set up your build tree, you can build the Dart VM for Android by using the standard Dart build script with the addition of the --os android build flag:
Copy file name to clipboardExpand all lines: docs/Building.md
+8-17Lines changed: 8 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,30 +99,21 @@ Note: If you do not have emscripten, you can update your `.gclient` file to pull
99
99
100
100
**IMPORTANT: You must follow instructions for [Getting the source](#source) before attempting to build. Just cloning a GitHub repo or downloading and unpacking a ZIP of the SDK repository would not work.**
The output will be in `out/ReleaseIA32/dart-sdk` on Linux and Windows, or `xcodebuild/ReleaseIA32/dart-sdk` on macOS.
120
-
121
112
See also [Building Dart SDK for ARM or RISC-V](Building-Dart-SDK-for-ARM-or-RISC-V.md).
122
113
123
114
## Tips
124
115
125
-
By default the build and test scripts select the debug binaries. You can build and test the release version of the VM by specifying `--mode=release` or both debug and release by specifying `--mode=all` on the respective `build.py` and `test.py` command lines. This can be shortened to `-mrelease` or `-m release`, and the architecture can be specified with `--arch=x64` or `-a x64`, the default. Other architectures, like `ia32`, `arm`, and `arm64` are also supported.
116
+
By default the build and test scripts select the debug binaries. You can build and test the release version of the VM by specifying `--mode=release` or both debug and release by specifying `--mode=all` on the respective `build.py` and `test.py` command lines. This can be shortened to `-mrelease` or `-m release`, and the architecture can be specified with `--arch=x64` or `-a x64`, the default. Other architectures, like `arm`, `arm64` and `riscv64` are also supported.
126
117
127
118
We recommend that you use a local file system at least for the output of the builds. The output directory is `out` on linux, `xcodebuild` on macOS, and `build` on Windows. If your code is in some NFS partition, you can link the `out` directory to a local directory:
128
119
```bash
@@ -155,22 +146,22 @@ gclient runhooks
155
146
156
147
All tests are executed using the `test.py` script under `tools/`. You need to use `build.py` to build the `most` and `run_ffi_unit_tests` targets before testing, e.g.
157
148
```bash
158
-
$ ./tools/build.py --mode release --arch ia32 most run_ffi_unit_tests
149
+
$ ./tools/build.py --mode release most run_ffi_unit_tests
159
150
```
160
151
161
152
Now you can run all tests as follows (Safari, Firefox, and Chrome must be installed, if you want to run the tests on them):
Specify the compiler used (optional -- only necessary if you are compiling to JavaScript (required for most browsers), the default is "none") and a runtime (where the code will be run).
166
157
167
158
You can run a specific test by specifying its full name or a prefix. For instance, the following runs only tests from the core libraries:
* Other options include using ssh X tunneling (`ssh -Y`), NX, VNC, setting up `xhost` and exporting the DISPLAY environment variable, or simply running tests locally.
Copy file name to clipboardExpand all lines: runtime/docs/heap-snapshots.md
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,6 @@
1
-
> [!IMPORTANT]
2
-
> This page was copied from https://github.com/dart-lang/sdk/wiki and needs review.
3
-
> Please [contribute](../CONTRIBUTING.md) changes to bring it up-to-date -
4
-
> removing this header - or send a CL to delete the file.
1
+
# Heap snapshots
5
2
6
-
---
7
-
8
-
The [VM service protocol](https://github.com/dart-lang/sdk/blob/main/runtime/vm/service/service.md) provides access to _heap snapshots_, a description of all the objects and references in the heap at some point in time. Tools such as Observatory provide analysis and visualization of these snapshots to help developers understand the memory usage of their applications.
3
+
The [VM service protocol](../vm/service/service.md) provides access to _heap snapshots_, a description of all the objects and references in the heap at some point in time. Tools such as Observatory provide analysis and visualization of these snapshots to help developers understand the memory usage of their applications.
Copy file name to clipboardExpand all lines: runtime/docs/hot-reload.md
-7Lines changed: 0 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,3 @@
1
-
> [!IMPORTANT]
2
-
> This page was copied from https://github.com/dart-lang/sdk/wiki and needs review.
3
-
> Please [contribute](../CONTRIBUTING.md) changes to bring it up-to-date -
4
-
> removing this header - or send a CL to delete the file.
5
-
6
-
---
7
-
8
1
# Live program changes in the Dart VM ("Hot reload")
9
2
10
3
The Dart VM can apply changes to a running (live) program, which it calls _hot reload_. The semantics are very close to those of Smalltalk, which doesn't have a name for this feature since in most Smalltalk implementations program changes can only be made in a live programming environment.
0 commit comments