What is VU?

Source: Internet
Author: User
unsigned char is unsigned character type
Volatile volatile or volatile
volatile unsigned char i;
A variable I that defines an unsigned character type.
This variable is stored in memory and needs to be removed from memory when it is used.
The general logic is "ready to use the variable----to the corresponding memory address to take the variable----with the variable", and now the compiler is involved, I put the value of I in the R register, each time from the R register to take the value, not from the inside access value. This problem arises, sometimes the value stored in the register will change unexpectedly, this time if the compiler or register value, the program will not get the expected results, or get unexpected results. Therefore, the compiler must be forced to take a value from the original address, volatile is the function, declaring that it is a variable that will be unexpectedly changed, do not let the compiler optimize it, let the compiler from the original address value

What is VU?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.