Skip to content

Commit 3c35f8c

Browse files
committed
Update README
1 parent 9eb1c45 commit 3c35f8c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Here we summarize the modification for each part of the compiler toolchain.
4242

4343
**Rust `core` Library**
4444
- Strip away unnecessary fields in `PanicInfo` so that the panic handling infrastructure can have minimal code storage overhead.
45+
- Provide atomic methods (e.g., `compare_exchange`, `fetch_add`) for atomic types on ARMv6M architectures.
46+
47+
**Rust `alloc` Library**
48+
- Enable `alloc::sync` for ARMv6M architectures.
4549

4650
# Build the Modified Compiler Toolchain
4751

@@ -216,6 +220,28 @@ Apply the patch.
216220
patch -p1 < $PATCHES_DIR/rust-core/core_diff.patch
217221
```
218222

223+
## Rust `alloc` Library
224+
225+
Enter the directory containing the Rust `alloc` libray within the installed Rust compiler toolchain.
226+
```
227+
cd $RUST_INSTALL_DIR/lib/rustlib/src/rust/library/
228+
```
229+
230+
Backup the original `alloc` library source code.
231+
```
232+
cp -r alloc alloc_backup
233+
```
234+
235+
Enter the `alloc` library.
236+
```
237+
cd alloc
238+
```
239+
240+
Apply the patch.
241+
```
242+
patch -p1 < $PATCHES_DIR/rust-alloc/alloc_diff.patch
243+
```
244+
219245
## Register the Toolchain
220246

221247
Register the compiled Rust compiler toolchain with `rustup`. Substitute `$RUST_INSTALL_DIR` with the directory rustc is installed in.

0 commit comments

Comments
 (0)