Great explanation of an important topic. 4:30 Would it be sufficient to use a GetFunction such as int GetFlag(void){return flag} which is called by main while(Getflag() == 0) instead of using volatile int flag? I'm not sure if the compiler could remove even a function call for optimization.
good explanation but volatile keyword is such a BS that its meaning is ambiguity itself. In this demo, we should assume that it's compiler bug! Why optimize out a memory access when a) systick handler accesses the memory area b) they are advertising their product is a compiler for embedded system development. The compiler should know!
Very nice explaination of volatile keyword !
It is so clear!! By the way, i want to buy your book but i want epub because i have an e-reader. Do you consider to deploy as epub on amazon?
Sorry. My publisher has no such plan yet.
@@embeddedsystemswitharmcort9051 understood. By the way, its nice to hear human voice because i am not native english speaker.
Yeah, PDF would be nice for me. I'd definitely buy it.
Great explaination, thank you!
Very good explanation
Great explanation of an important topic. 4:30 Would it be sufficient to use a GetFunction such as int GetFlag(void){return flag} which is called by main while(Getflag() == 0) instead of using volatile int flag? I'm not sure if the compiler could remove even a function call for optimization.
This is a really nice question. Did anyone give it a try?
Nicely Explained👏
Thank you 🙂
Clear explanation
smart explained, easy to understand
great lecture
Excellent
Perfect video.
Thank you
Which IDE is that you are using?
ARM Keil www2.keil.com/mdk5
@@embeddedsystemswitharmcort9051 Thank You
Thank you for this
good explanation but volatile keyword is such a BS that its meaning is ambiguity itself. In this demo, we should assume that it's compiler bug! Why optimize out a memory access when
a) systick handler accesses the memory area
b) they are advertising their product is a compiler for embedded system development. The compiler should know!
Do not agree that Volatile is BS but my exact thought was that systick handler is already there in startup code, why compiler not aware about this?