| ??? 12/11/07 07:30 Read: times |
#148065 - How to initialize Absolute variables in code mem? |
I am using Keil V7.07 C compiler. Problem Regarding Absolute Variable Initialization.
An Absolute Variable Can be defined as: unsigned char code xyz _at_ 0xFE01; A Normal Variable can be initialized as: unsigned char code xyz = 76; Is there any possibility that an absolute variable in code memory can be initialized ?? like unsigned char code xyz _at_ 0xFE01 = 76; OR unsigned char code xyz = 76 _at_ 0xFE01; Above both methods are wrong. On Page 104 (C51 Users Guide), it is clearly written that Absolute Variables cannot be initialized. Is there any other way to initialize absolute variables? |
| Topic | Author | Date |
| How to initialize Absolute variables in code mem? | 01/01/70 00:00 | |
| The answer is here | 01/01/70 00:00 | |
| Answer explained: | 01/01/70 00:00 | |
| this is something Keil should implement | 01/01/70 00:00 | |
| why do you need this? | 01/01/70 00:00 | |
| Example | 01/01/70 00:00 | |
| OK, I accept | 01/01/70 00:00 | |
| Why? | 01/01/70 00:00 | |
| I would fall back to assy here | 01/01/70 00:00 | |
| Not exactly true | 01/01/70 00:00 | |
Linker segments | 01/01/70 00:00 |



