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

Exercise B

parent 4b3e6d74
Branches
No related tags found
No related merge requests found
......@@ -78,19 +78,19 @@ fn timed_loop() -> (u32, u32) {
// B.1) What is the cycle count for the loop?
// > cargo run --example rtt_timing --release
//
// [Your answer here]
// [903726927 - 903719926 = 7001]
//
// B.2) How many cycles per iteration?
//
// [Your answer here]
// [7001/1000 = 7]
//
// What is the speedup (A/B)?
//
// [Your answer here]
// [A/B = 4790/7 = 684 times]
//
// Why do you think it differs that much?
//
// [Your answer here]
// [It removes some unnessesary code in the for loop which is inside the timed_loop().]
//
// ------------------------------------------------------------------------
// In the loop there is just a single assembly instruction (nop).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment