Discuss Register Variable in the C Programming forum on Dev Shed. Register Variable C programming forum discussing all C derivatives, including C#, C++, Object-C, and even plain old vanilla C. These languages are low level languages, and used on projects such as device drivers, compilers, and even whole computer operating systems.
Location: Woodland Hills, Los Angeles County, California, USA
Time spent in forums: 2 Months 3 Days 6 h 2 m 28 sec
Reputation Power: 4106
I don't think this is possible, by the definition of a volatile type. You can't place a volatile variable in a CPU register, because a volatile variable can be changed by an external program or an interrupt.