Skip to content

Commit 664a7b6

Browse files
authored
Merge pull request #82 from rust-lang-nursery/bye-xargo
embedonomicon: remove mentions of Xargo and the intrinsics / compiler_builtins chapters
2 parents 152b275 + 7fbec9d commit 664a7b6

File tree

11 files changed

+12
-231
lines changed

11 files changed

+12
-231
lines changed

books/embedonomicon/src/SUMMARY.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
- [Interlude II](./interlude-ii.md)
1717
- [Modular linker scripts](./modular-linker-scripts.md)
1818
- [Life before `main`](./before-main.md)
19-
- [Compiler intrinsics](./intrinsics.md)
2019
- [Less unstable](./less-unstable.md)
2120
- [`#[used]`](./less-unstable/used.md)
2221
- [`#[linkage = "weak"]`](./less-unstable/weak.md)
23-
- [`compiler_builtins`](./less-unstable/compiler-builtins.md)
2422
- [`start` / `termination`](./less-unstable/start.md)
2523
- [`asm!`](./less-unstable/asm.md)

books/embedonomicon/src/cargo-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ rustflags = [
1919
target = "thumbv7m-none-eabi"
2020
```
2121

22-
Now `xargo build` does pretty much the same thing as the long `xargo rustc` invocation did. I have
22+
Now `cargo build` does pretty much the same thing as the long `cargo rustc` invocation did. I have
2323
left out the `-e` linker flag because we'll be using something different in the next chapter. If you
2424
test this out you should get the empty output binary.
2525

2626
``` console
27-
$ xargo build
27+
$ cargo build
2828

2929
$ arm-none-eabi-size target/thumbv7m-none-eabi/debug/app
3030
text data bss dec hex filename

books/embedonomicon/src/exceptions/struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ASSERT(_evector == ORIGIN(FLASH) + 0x40, "you forgot to call `exceptions!`");
251251
Now if the user forgets to call the `exceptions!` they'll get the following error:
252252

253253
``` console
254-
$ xargo build
254+
$ cargo build
255255
error: linking with `arm-none-eabi-ld` failed: exit code: 1
256256
|
257257
= note: "arm-none-eabi-ld" "-L" (..)

books/embedonomicon/src/glue-crate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ glue = { path = "glue" }
6767
```
6868

6969
``` console
70-
$ xargo build
70+
$ cargo build
7171

7272
$ arm-none-eabi-size target/thumbv7m-none-eabi/debug/app
7373
text data bss dec hex filename
7474
0 0 0 0 0 target/thumbv7m-none-eabi/debug/app
7575

76-
$ xargo rustc -- -C link-arg=-emain
76+
$ cargo rustc -- -C link-arg=-emain
7777

7878
$ arm-none-eabi-size target/thumbv7m-none-eabi/debug/app
7979
text data bss dec hex filename

books/embedonomicon/src/intrinsics.md

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

books/embedonomicon/src/less-unstable/compiler-builtins.md

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

books/embedonomicon/src/linking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
If you try to link the previous program you'll get an error:
44

55
``` console
6-
$ xargo build --target thumbv7m-none-eabi
6+
$ cargo build --target thumbv7m-none-eabi
77
error: linking with `arm-none-eabi-gcc` failed: exit code: 1
88
|
99
= note: "arm-none-eabi-gcc" "-L" (..)
@@ -23,7 +23,7 @@ in a bunch of C stuff to make the program more POSIX-y but we don't need all tha
2323
linker to `ld` we'll be free of the C stuff so let's do that:
2424

2525
``` console
26-
$ xargo rustc --target thumbv7m-none-eabi -- \
26+
$ cargo rustc --target thumbv7m-none-eabi -- \
2727
-C linker=arm-none-eabi-ld -Z linker-flavor=ld
2828
```
2929

@@ -45,7 +45,7 @@ We can tell the linker what we want the entry point to be by passing the `-e` fl
4545
let's use `main` (the one produced by `rustc`) as the entry point.
4646

4747
``` console
48-
$ xargo rustc --target thumbv7m-none-eabi -- \
48+
$ cargo rustc --target thumbv7m-none-eabi -- \
4949
-C linker=arm-none-eabi-ld -Z linker-flavor=ld -C link-arg=-emain
5050
```
5151

books/embedonomicon/src/memory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ target = "thumbv7m-none-eabi"
5757
```
5858

5959
``` console
60-
$ xargo rustc -- -C link-arg=-emain
60+
$ cargo rustc -- -C link-arg=-emain
6161

6262
$ arm-none-eabi-objdump -Cd target/thumbv7m-none-eabi/debug/app
6363
```

books/embedonomicon/src/no-std-binary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ fn main() {}
1717
```
1818

1919
``` console
20-
$ xargo build --target thumbv7m-none-eabi
20+
$ cargo build --target thumbv7m-none-eabi
2121
error: language item required, but not found: `panic_fmt`
2222
```

books/embedonomicon/src/panic-fmt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ unsafe extern "C" fn panic_fmt(
4141
```
4242

4343
``` console
44-
$ xargo build --target thumbv7m-none-eabi
44+
$ cargo build --target thumbv7m-none-eabi
4545
error: requires `start` lang_item
4646
```

books/embedonomicon/src/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Let's first turn the crate into an object file using:
102102

103103
``` console
104104
$ # NOTE disable incremental compilation to reproduce these steps
105-
$ xargo rustc --target thumbv7m-none-eabi -- --emit=obj -C linker=true # don't link
105+
$ cargo rustc --target thumbv7m-none-eabi -- --emit=obj -C linker=true # don't link
106106

107107
$ find -name '*.o'
108108
./target/thumbv7m-none-eabi/debug/deps/app-6e6a2da6f83262fd.o

0 commit comments

Comments
 (0)