This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Volatile Keyword



TI Compiler Experts,

                                    I am using a global "volatile" variable which is not referenced in any functions or anywhere in my program. After I compile the program with C6000 compiler, the map file generated contains no mention of the global variable. But when I add line of dummy code to make use of the volatile variable inside a function, after compilation I am able to find the variable in global symbol section of the map file.

My question is why is compiler ignoring volatile keyword used with variable declaration?

Thanks

Anish

Signalogic