What does code pattern like .size X,.-X do?

后端 未结 1 1735
暖寄归人
暖寄归人 2021-01-20 00:17

My question is about some popular but not well documented code I have found in ARM CORTEX M startup files like this STM32.

The \'pattern\' is:

.size         


        
相关标签:
1条回答
  • 2021-01-20 00:20

    That is placed at the end of function X, and the size of the function is the difference between the end of the function and the beginning. . is the current location so it's saying .size x is the difference between here and the label x.

    0 讨论(0)
提交回复
热议问题