Qualcomm Interview Question

What is the difference between static and volatile variable from compiler perspective?