Hello Folks,
I'm trying to understand the volatile implementation in 'C'.
How this modifier is differed from other ?
what is the significance of using it ?
To which section of the memory does volatile variable get stored text or data or bss ?
To make it clear , lets take an example.
//variable declaration
volatile int T;
// main program
While(1)
{
if(T1 == 4) // will be waiting for the 4 to occur
{
break;
}
}
From the above example variable T1 defined as "volatile" , means that value changes occur externally (hw mappings ) ?
let's consider if the volatile modifier is not used above, what would be the impact ?
Thanks
I'm trying to understand the volatile implementation in 'C'.
How this modifier is differed from other ?
what is the significance of using it ?
To which section of the memory does volatile variable get stored text or data or bss ?
To make it clear , lets take an example.
//variable declaration
volatile int T;
// main program
While(1)
{
if(T1 == 4) // will be waiting for the 4 to occur
{
break;
}
}
From the above example variable T1 defined as "volatile" , means that value changes occur externally (hw mappings ) ?
let's consider if the volatile modifier is not used above, what would be the impact ?
Thanks