Skip to content
Snippets Groups Projects
Commit c417362f authored by Ruben Asplund's avatar Ruben Asplund
Browse files

Exercise C

parent a977a19d
No related branches found
No related tags found
No related merge requests found
...@@ -112,15 +112,15 @@ fn timed_loop() -> (u32, u32) { ...@@ -112,15 +112,15 @@ fn timed_loop() -> (u32, u32) {
// C.1) What is the cycle count for the loop? // C.1) What is the cycle count for the loop?
// > cargo run --example rtt_timing --release --features nightly // > cargo run --example rtt_timing --release --features nightly
// //
// [Your answer here] // [909736501 - 909732500 = 4001]
// //
// C.2) How many cycles per iteration? // C.2) How many cycles per iteration?
// //
// [Your answer here] // [4001/1000 = 4]
// //
// What is the speedup (A/C)? // What is the speedup (A/C)?
// //
// [Your answer here] // [4790/4 = 1198 times]
// //
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// D) Now lets have a closer look at the generated assembly. // D) Now lets have a closer look at the generated assembly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment