Machine-translated by Google. Questions are authored in English.
Top

Discussion

Declaring a peripheral register volatile tells the compiler that

  • A.its value may change without the program having written it
  • B.it must be placed in read-only memory
  • C.accesses to it must be aligned to a word boundary
  • D.it may not be modified by the program at any point

Answer: A

The compiler must then perform every read and write the source asks for, in the order written, rather than caching the value in a register. It says nothing about atomicity and nothing about ordering with respect to other objects.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.