From 2169db020d17bcfd2ba8c14b7ba560e1942c4ecd Mon Sep 17 00:00:00 2001 From: anttib-5 <anttib-5@student.ltu.se> Date: Thu, 7 Mar 2019 16:05:08 +0100 Subject: [PATCH] bare1_5 --- examples/bare1.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/bare1.rs b/examples/bare1.rs index 473855a..48a0c4e 100644 --- a/examples/bare1.rs +++ b/examples/bare1.rs @@ -197,9 +197,12 @@ fn main() -> ! { // > cargo build --example bare1 --release // (or using the vscode build task) // -// Compare the generated assembly for the loop -// between the dev (unoptimized) and release (optimized) build. -// +// Dump of assembler code for function main: + // 0x08000400 <+0>: nop + // 0x08000402 <+2>: bkpt 0x0000 +// => 0x08000404 <+4>: b.n 0x8000400 <main> +// End of assembler dump. +// Of course this is much shorter, since it is optimized // // commit your answers (bare1_5) // -- GitLab