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

Displaying Variable Address in the memory map

How do I display a memory map of my variables and their addresses?

I am looking through the .map file but I cannot see a final memory map of all the variables.
Is there a way to do this with Keil?

regards

Konrad

Parents
  • Thanks, I had missed that auto variables would not appear, doh!

    I am just starting with the ARM (STM32F4). I am doing some basic testing like cheking the speed of interrupts.

    I had some variables declared as volatile in an interrupt routine and assumed they would then be global and I could see them. Re-declaring them as static showed them in the memory map. Changing them from automatic to static atually had a detremental impact on the speed.

    Regards

    Konrad

Reply
  • Thanks, I had missed that auto variables would not appear, doh!

    I am just starting with the ARM (STM32F4). I am doing some basic testing like cheking the speed of interrupts.

    I had some variables declared as volatile in an interrupt routine and assumed they would then be global and I could see them. Re-declaring them as static showed them in the memory map. Changing them from automatic to static atually had a detremental impact on the speed.

    Regards

    Konrad

Children
  • No - volatile has nothing to do with scope or lifetime!

    "Re-declaring them as static showed them in the memory map. Changing them from automatic to static atually had a detremental impact on the speed"

    When they were automatic, they might have been in registers?

    But did you actually want them to be global...?