Hi,
I'm trying to locate a variable to an specific address. There are three ways to do this:
1) using options of the file that have the variable and config the RAM area 2) unsigned int cont __at (0x2000000); 3) #define cont (*((unsigned int *)(0x2000000)))
The first one, is too bad because is posible that I want to locate variables to diferents locations. The second one, is perfect for me, but when compiling the compiler generate a very big file from CODE area to RAM area even using a not init area. The third one, works perfect, but is not a standard way to do it.
How can I use __at tense without make a very big file?
My code are located at 0x1000000 and the data are at 0x2000000.
Thanks!!!
Thats is clear, but, there are any other method to do this with the supervision of the compiler?. Using __at directive the results are not good.