mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-24 14:58:09 +00:00
fix typo
This commit is contained in:
parent
ae3fb7a288
commit
e75db1739b
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ The following command cross compiles the program to the ARM Cortex-M4 architectu
|
|||
$ cargo build --bin hello
|
||||
```
|
||||
|
||||
The default in a Cargo project is to compile for the host (native compilation) but the `beginner/apps` project has been configured for cross compilation. This configuration can be see in the Cargo configuration file (`.cargo/config`):
|
||||
The default in a Cargo project is to compile for the host (native compilation) but the `beginner/apps` project has been configured for cross compilation. This configuration can be seen in the Cargo configuration file (`.cargo/config`):
|
||||
|
||||
``` text
|
||||
# .cargo/config
|
||||
|
@ -23,7 +23,7 @@ hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked
|
|||
|
||||
## Binary size
|
||||
|
||||
ELF files contain metadata like debug information and their size on disk is not a good indication of the amount of Flash the program will use once it's loaded on the target device's memory.
|
||||
ELF files contain metadata like debug information so their size on disk is not a good indication of the amount of Flash the program will use once it's loaded on the target device's memory.
|
||||
|
||||
To display the amount of Flash the program will occupy on the target device use the `cargo-size` tool (part of the `cargo-binutils` package):
|
||||
|
||||
|
|
Loading…
Reference in a new issue