Qualcomm interview question

how do you read an input port in a microcontroller continuously without compiler optimization

Interview Answers

Anonymous

3 Mar 2021

We can read input port in microcontroller without compiler optimization by using Volatile Keyword. Volatile Keyword instructs compiler that not to optimize the variable. generally Compiler Do optimization to run code faster and to reduce code size also.

2

Anonymous

20 Feb 2021

Answered the basics, but couldn't answer completely

1