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 get the start and end address of _DATA_GROUP_ in C program?

As title.

Parents
  • This is not available in the Keil tools. :-(

    I have seen tools where the Linker provides symbols that can do this kind of thing - but not Keil.

    uVision doesn't even give the compiler access to the parameters entered in the Target Options, though this could easily be done with predefined macros - like it does for the Memory Model:
    www.keil.com/.../c51_pp_predefmacroconst.htm

    :-(

    You may be able to get what you need by defining variables that you know (by Linker controls?) will be first & last in the group?

    Perhaps if you explained what you're actually trying to achieve, people might be able to offer informed suggestions...

Reply
  • This is not available in the Keil tools. :-(

    I have seen tools where the Linker provides symbols that can do this kind of thing - but not Keil.

    uVision doesn't even give the compiler access to the parameters entered in the Target Options, though this could easily be done with predefined macros - like it does for the Memory Model:
    www.keil.com/.../c51_pp_predefmacroconst.htm

    :-(

    You may be able to get what you need by defining variables that you know (by Linker controls?) will be first & last in the group?

    Perhaps if you explained what you're actually trying to achieve, people might be able to offer informed suggestions...

Children
No data