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 do I get the bit address in Keil C

Hi,

I want to know the address of a bit variable.
For example:

bit gBit;
func()
{
  printf("%d", &gBit);
}
How do I know where the variable gBit is allocated by the linker in run time?

Parents
  • but it is very inconvenient to manually update all the addresses of the bit variables every time you rebuild the program

    There may be ways (I can think of a few) but they are all application dependent.

    So I can give you no answer till you state WHY you need to know the address of the bits

    Erik

Reply
  • but it is very inconvenient to manually update all the addresses of the bit variables every time you rebuild the program

    There may be ways (I can think of a few) but they are all application dependent.

    So I can give you no answer till you state WHY you need to know the address of the bits

    Erik

Children
No data