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

linker option --map

Hi,

I can't generate image memory map file through linker --map flag.
I'm using the "Arm Linker"->"Additional Information" page to set the --map linker flag, however no memory map file is created after linkage stage.


Thanks,
Ronen

Parents
  • Pre-Keil, after a successful build a couple of "gauges" would display showing how much program and data space was used.  I don't see that sort of thing after a Keil build.  I moved an MBED project to Keil and am getting successful builds, executions, etc.  So guess you could say I'm using defaults and am not familiar with things like Arm Linker, or its map flag.  Can you point me to documentation?  Thanks!

Reply
  • Pre-Keil, after a successful build a couple of "gauges" would display showing how much program and data space was used.  I don't see that sort of thing after a Keil build.  I moved an MBED project to Keil and am getting successful builds, executions, etc.  So guess you could say I'm using defaults and am not familiar with things like Arm Linker, or its map flag.  Can you point me to documentation?  Thanks!

Children
  • Hello,

    A Keil build should output a basic report when built, something like:

    Program Size: Code=9608 RO-data=1108 RW-data=12 ZI-data=1892

    You can also generate this by setting in the 'Listing' tab of the project properties:

    ==============================================================================
    
          Code (inc. data)   RO Data    RW Data    ZI Data      Debug   
    
          9608        464       1108         12       1892       8439   Grand Totals
          9608        464       1108         12       1892       8439   ELF Image Totals
          9608        464       1108         12          0          0   ROM Totals
    
    ==============================================================================
    
        Total RO  Size (Code + RO Data)                10716 (  10.46kB)
        Total RW  Size (RW Data + ZI Data)              1904 (   1.86kB)
        Total ROM Size (Code + RO Data + RW Data)      10728 (  10.48kB)
    
    ==============================================================================

    You can also generate this from the final image with:

    fromelf -z image.axf