How can I find addresses of variables of compiled project?

Help
teplofizik
2014-03-21
2014-03-21
  • teplofizik
    teplofizik
    2014-03-21

    There is .map file, but it contain only addresses of sections and functions. Has a linker any options to add variables information or to create file with them?

    Platform: stm8. There is no gdb support (.elf), but ST has program STM Studio, which can watch memory of controller, if you know address and size of variables you want.