Skip to content

Commit 0176bcc

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[docs] Update references to IA32.
Change-Id: Ifdd2e4126b82e4e7dd18dc736ad5fbbb9ad50101 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435242 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Brian Quinlan <[email protected]>
1 parent 87beee9 commit 0176bcc

19 files changed

+28
-55
lines changed

docs/Building-Dart-SDK-for-ARM-or-RISC-V.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
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.
44

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.
66
77
# Cross-compiling
88

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.
1010

1111
## Linux
1212

1313
If you are running Debian/Ubuntu, you can obtain a cross-compiler by doing the following:
1414

1515
```bash
16-
$ sudo apt-get install g++-i686-linux-gnu # To target ia32
1716
$ sudo apt-get install g++-x86-64-linux-gnu # To target x64
1817
$ sudo apt-get install g++-arm-linux-gnueabihf # To target arm
1918
$ sudo apt-get install g++-aarch64-linux-gnu # To target arm64
@@ -36,7 +35,7 @@ $ ./tools/build.py --no-clang --mode release --arch arm64 create_sdk
3635
$ ./tools/build.py --no-clang --mode release --arch riscv64 create_sdk
3736
```
3837

39-
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.
4039

4140
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:
4241

@@ -63,7 +62,7 @@ You can create Debian packages targeting ARM or RISC-V as follows:
6362

6463
```
6564
$ ./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}
6766
```
6867

6968
# Testing

docs/Building-the-Dart-VM-for-Android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Run gclient sync to install the Android NDK and SDK. This may take 10 minutes or
3030

3131
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:
3232

33-
`$ tools/build.py --arch=arm,arm64,ia32,x64,riscv64 --os=android runtime`
33+
`$ tools/build.py --arch=arm,arm64,x64,riscv64 --os=android runtime`
3434

3535
# Testing the result
3636

@@ -58,7 +58,7 @@ Create a directory on the Android emulator.
5858

5959
Copy the Dart VM executable to the Android emulator:
6060

61-
`$ adb push out/android/ReleaseAndroid{ARM,ARM64,IA32,X64,RISCV64}/dart /data/local/tmp/dart/dart`
61+
`$ adb push out/android/ReleaseAndroid{ARM,ARM64,X64,RISCV64}/dart /data/local/tmp/dart/dart`
6262

6363
Create a simple Dart test script:
6464

docs/Building.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,21 @@ Note: If you do not have emscripten, you can update your `.gclient` file to pull
9999

100100
**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.**
101101

102-
Build the 64-bit SDK:
102+
Build the SDK:
103103

104104
```bash
105105
# From within the "dart-sdk" directory.
106106
cd sdk
107-
./tools/build.py --mode release --arch x64 create_sdk
107+
./tools/build.py --mode release create_sdk
108108
```
109109

110110
The output will be in `out/ReleaseX64/dart-sdk` on Linux and Windows, and `xcodebuild/ReleaseX64/dart-sdk` on macOS.
111111

112-
Build the 32-bit SDK:
113-
114-
```bash
115-
# From within the "dart-sdk" directory.
116-
cd sdk
117-
./tools/build.py --mode release --arch ia32 create_sdk
118-
```
119-
The output will be in `out/ReleaseIA32/dart-sdk` on Linux and Windows, or `xcodebuild/ReleaseIA32/dart-sdk` on macOS.
120-
121112
See also [Building Dart SDK for ARM or RISC-V](Building-Dart-SDK-for-ARM-or-RISC-V.md).
122113

123114
## Tips
124115

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.
126117

127118
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:
128119
```bash
@@ -155,22 +146,22 @@ gclient runhooks
155146

156147
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.
157148
```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
159150
```
160151

161152
Now you can run all tests as follows (Safari, Firefox, and Chrome must be installed, if you want to run the tests on them):
162153
```bash
163-
$ ./tools/test.py -mrelease --arch=ia32 --compiler=dartk,dart2js --runtime=vm,d8,chrome,firefox,[safari]
154+
$ ./tools/test.py -mrelease --compiler=dartk,dart2js --runtime=vm,d8,chrome,firefox,[safari]
164155
```
165156
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).
166157

167158
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:
168159
```bash
169-
$ ./tools/test.py -mrelease --arch=ia32 --runtime=vm corelib
160+
$ ./tools/test.py -mrelease --runtime=vm corelib
170161
```
171162
The following runs a single test:
172163
```bash
173-
$ ./tools/test.py -mrelease --arch=ia32 --runtime=vm corelib/ListTest
164+
$ ./tools/test.py -mrelease --runtime=vm corelib/ListTest
174165
```
175166

176167
Make sure to run tests using the release VM if you have built the release VM, and for the same architecture as you have built.
@@ -235,7 +226,7 @@ Some common problems you might get when running tests for the first time:
235226
* Use `xvfb`:
236227

237228
```bash
238-
xvfb-run ./tools/test.py --arch=ia32 --compiler=dart2js --runtime=drt ...
229+
xvfb-run ./tools/test.py --compiler=dart2js --runtime=drt ...
239230
```
240231

241232
* 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.

docs/Supported-Architectures.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/Heap-snapshots.md renamed to runtime/docs/heap-snapshots.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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
52

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.
94

105
* [Concepts](#concepts)
116
* [Advice](#concepts)

docs/Hot-reload.md renamed to runtime/docs/hot-reload.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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-
81
# Live program changes in the Dart VM ("Hot reload")
92

103
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)