Mixing ARM and THUMB instructions

后端 未结 1 638
天命终不由人
天命终不由人 2021-01-14 07:19

I am trying to mix ARM and THUMB instructions in my assembly code. For example, in the following code I try to use both modes:

.thumb  @ .code 16
.section __         


        
相关标签:
1条回答
  • 2021-01-14 08:08

    you need .thumb_func before the thumb labels for them to be thumb targets otherwise the gnu tools will treat it as an arm target. (yes you need the .thumb once AND .thumb_func for EVERY label you want to use as a thumb target). Many examples http://github.com/dwelch67

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