From c417362f265d3464a7657d3ed0e4fe38e0099ac3 Mon Sep 17 00:00:00 2001 From: rubenasplund <ruben.asplund@hotmail.com> Date: Fri, 4 Dec 2020 11:43:30 +0100 Subject: [PATCH] Exercise C --- examples/rtt_timing.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/rtt_timing.rs b/examples/rtt_timing.rs index b0af834..a0fadd6 100644 --- a/examples/rtt_timing.rs +++ b/examples/rtt_timing.rs @@ -112,15 +112,15 @@ fn timed_loop() -> (u32, u32) { // C.1) What is the cycle count for the loop? // > cargo run --example rtt_timing --release --features nightly // -// [Your answer here] +// [909736501 - 909732500 = 4001] // // C.2) How many cycles per iteration? // -// [Your answer here] +// [4001/1000 = 4] // // What is the speedup (A/C)? // -// [Your answer here] +// [4790/4 = 1198 times] // // ------------------------------------------------------------------------ // D) Now lets have a closer look at the generated assembly. -- GitLab