File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ If you look at the disassembly of the program:
249
249
250
250
251
251
``` console
252
- $ cargo objdump --bin app --release -- -d -no-show-raw-insn -print-imm-hex
252
+ $ cargo objdump --bin app --release -- -d -- no-show-raw-insn - -print-imm-hex
253
253
(..)
254
254
ResetTrampoline:
255
255
8000942: movw r0, #0xfffe
Original file line number Diff line number Diff line change 259
259
` cargo-objdump ` can be used to disassemble the binary.
260
260
261
261
``` console
262
- cargo objdump --bin app --release -- -disassemble -no-show-raw-insn -print-imm-hex
262
+ cargo objdump --bin app --release -- -- disassemble -- no-show-raw-insn - -print-imm-hex
263
263
```
264
264
265
+ > ** NOTE** if the above command complains about ` Unknown command line argument ` see
266
+ > the following bug report: https://github.com/rust-embedded/book/issues/269
267
+
265
268
> ** NOTE** this output can differ on your system. New versions of rustc, LLVM
266
269
> and libraries can generate different assembly. We truncated some of the instructions
267
270
> to keep the snippet small.
You can’t perform that action at this time.
0 commit comments