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

CARM THUMB *.LST Adresscounter

Hallo all,

Is there an error in the listing file? It seems, as if the Adresscounter is wrongly increased.

Here an Example:


0000000C  7001      STRB        R1,[R0,#0x0] ;
 197:   _nop_();
0000000E  F7FF      BL          _nop_?T  ;
00000010  FFF7      BL          _nop_?T  ;
 198:   _nop_();
00000014  F7FF      BL          _nop_?T  ;
00000016  FFF4      BL          _nop_?T  ;
 216: }
0000001A  BC08      POP         {R3}

  • Yes, the CA LST file always inserts a worst 'case' scenario of the generated code.
    Since the location of 'nop' is not known at the compile time, theorical the BL would generate an 8-byte sequence.

    Note that the LA Linker/Locater generates a code listing file too. This code listing file shows the exact program code.

    It can be easily accessed from uVision by using the context menu in the editor. It opens the *.COD listing file at the position of the source code.