From c6bd08fc572679cad4513623b60086cf52c9ff13 Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Thu, 21 Feb 2019 14:24:10 +0100 Subject: [PATCH] bare2_1 --- .cargo/config | 2 +- examples/bare2.rs | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.cargo/config b/.cargo/config index a55bec7..ec3e4e9 100644 --- a/.cargo/config +++ b/.cargo/config @@ -25,7 +25,7 @@ rustflags = [ # "-C", "link-arg=-nostartfiles", # uncomment for unchecked wrapping arithmetics also in dev mode - "-Z", "force-overflow-checks=off", + # "-Z", "force-overflow-checks=off", ] [build] diff --git a/examples/bare2.rs b/examples/bare2.rs index c039a6e..291bb67 100644 --- a/examples/bare2.rs +++ b/examples/bare2.rs @@ -71,18 +71,26 @@ fn main() -> ! { // // What is the output in the ITM console? // -// ** your answer here ** +// ** +// [2019-02-21T12:23:01.072Z] bare2 +// [2019-02-21T12:23:29.117Z] Start 42606 +// [2019-02-21T12:23:29.118Z] End 448042815 +// ** // // Rebuild and run in release mode // // > cargo build --example bare2 --release // -// ** your answer here ** +// ** +// [2019-02-21T12:30:44.941Z] bare2 +// [2019-02-21T12:30:45.142Z] Start 3057860134 +// [2019-02-21T12:30:45.142Z] End 3061860142 +// ** // // Compute the ratio between debug/release optimized code // (the speedup). // -// ** your answer here ** +// ** 448000209 / 4000008 = 111,99982825 times ** // // commit your answers (bare2_1) // -- GitLab