This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to do more efficiency ?

Hi,All
I try to define the start_address type,
//-------------------------------------
unsigned char xdata Start_Address _at_ 0x2000;
//-------------------------------------
and also need to access 0x2001,0x2002,......
my solution is repeat define the address, but it is poor efficiency.
Is there are any function like (Start_Address+1),(Start_Address+2)......
can implementation ? or any suggestion.

Thanks.

Parents
  • Note that the "efficiency" here is merely the programmer's efficiency in writing the source code; whether it is any more efficient in terms of code space or execution speed is another matter altogether...

    Anyway, why do you want to manually allocate all these variables to fixed addresses?

Reply
  • Note that the "efficiency" here is merely the programmer's efficiency in writing the source code; whether it is any more efficient in terms of code space or execution speed is another matter altogether...

    Anyway, why do you want to manually allocate all these variables to fixed addresses?

Children