This is nothing magic but simply a variable definition, in the code address space (__code) at the correct address (__at adr) and initialized with a value!

The name is not important, e.g.

char foovalue; /*variable*/

char foovalue = 42; /* initialized*/

__code char foovalue = 42; /*address space defined*/

__code char __at __CONFIG1L foovalue = 0x42; /*storage address defined*/

this creates the correct definition in the hex file.


On Tue, Apr 19, 2011 at 2:21 PM, Olgierd Eysymontt <> wrote:
I'll give it a try tonight and let you know.

It's a very different syntax, ¿ where did you got that info ?, I'm curious.



On 18-04-2011 16:57, Rob Connolly wrote:
> __code __at __CONFIG1L _C1L = 0x20;
> __code __at __CONFIG1H _C1H = 0x04;
> __code __at __CONFIG2L _C2L = 0x04&  0x01;
> __code __at __CONFIG2H _C2H = 0x0C;
> __code __at __CONFIG3L _C3L = 0x30&  0x40;
> __code __at __CONFIG3H _C3H = 0x07;

Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization.
Sdcc-user mailing list