> On 18/06/2014 15:16, "Maarten Brock" <sourceforge.br...@dse.nl> wrote:
>>
>>When you use __at without initializer however, SDCC does not allocate and
>>you can define another variable (with __at) at the same address. It will
>>also not zero the variable at startup. This is probably exactly what you
>>need for a hardware register.
>
> Exactly, thanks. But what about access efficiency? If I just declare
> the variable in the header and define it (with __at) in the c file,
> is the code generated to to read/write the variable different from
> if I just define it in the header?

I don't know. I don't work on the pic backend. But try it and you'll find
out soon enough I guess by looking at the generated asm.

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to