Skip to content
Snippets Groups Projects
Commit 7c552427 authored by anttib-5's avatar anttib-5
Browse files

bare4_3

parent 25072c57
No related branches found
No related tags found
No related merge requests found
...@@ -127,16 +127,16 @@ fn main() -> ! { ...@@ -127,16 +127,16 @@ fn main() -> ! {
// //
// Why is it important that ordering of volatile operations are ensured by the compiler? // Why is it important that ordering of volatile operations are ensured by the compiler?
// //
// ** your answer here ** // Since some operations has to be executed before others.
// //
// Give an example in the above code, where reordering might make things go horribly wrong // Give an example in the above code, where reordering might make things go horribly wrong
// (hint, accessing a peripheral not being powered...) // (hint, accessing a peripheral not being powered...)
// //
// ** your answer here ** // If we swap row 59-60 with 63-64, then we wont get the nice blinking anymore.
// //
// Without the non-reording proprety of `write_volatile/read_volatile` could that happen in theory // Without the non-reording proprety of `write_volatile/read_volatile` could that happen in theory
// (argue from the point of data dependencies). // (argue from the point of data dependencies).
// //
// ** your answer here ** // Writing/Reading in wrong order may end up in unexpexed results
// //
// Commit your answers (bare4_3) // Commit your answers (bare4_3)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment