To assign a variable to a specific addresses, I tried using the '@' directive as given below:
int glob @0x0500 = 10;
This gives a compiler error which says:
"Expected ; instead of '@' ".
I tried with the C99 & GCC extensions enabled in c/C++ Language settings tab. This did not help.