diff --git a/examples/rtic_bare2.rs b/examples/rtic_bare2.rs index 366791c7cba7baa65303f9995f0c9e21b52bcdcf..fcc408f02b2ec1a1b024bb4cb77f7a8d578d0afc 100644 --- a/examples/rtic_bare2.rs +++ b/examples/rtic_bare2.rs @@ -156,7 +156,9 @@ End of assembler dump. // Answer in your own words, why you believe the generated code differs? // /* -It starts the wait function where it just loops nops for a certain number of times that fits the wait value. Each time it will remove 1 from r0 and check if it resulted in a negative number or not. If it results in a negative number it will not branch and the wait is over. So if you insert 100 it will probably divide 100 on 8 and then insert the nearest hole number of that in to r0. +To save space the compiler makes some optimizations in the code. +So wait is now compiled as a function and takes an argument in r0 instead of +just setting a value before it runs. */ // // Commit your answers (bare2_3)