thumb-2 and armeabi-v7a

94 views
Skip to first unread message

AppCoder

unread,
Jul 30, 2018, 5:55:59 PM7/30/18
to android-ndk
Is there any reason not to use thumb-2 for building armeabi-v7a code to get the reduced binary size?


Glenn Kasten

unread,
Jul 31, 2018, 11:03:33 AM7/31/18
to android-ndk
There is a good overview and discussion of the topic here:

The first Quora answer explains the instruction sets, and the second Quora answer
suggests that there are few if any disadvantages of Thumb-2 over ARM (32).

mar...@gmail.com

unread,
Oct 4, 2018, 4:37:36 PM10/4/18
to android-ndk
In my opinion Thumb2 is the ONLY time arm got anything right in their instruction sets but do not be fooled into thinking thumb is more space efficient than arm or that thubm2 is more space efficient than arm or that any of them execute code faster than any other.
The choice between ARM and Thumb2 basically boils down to this.  Will you be 100% self contained and make no calls to external libraries? If so pick either and be done.  If not... you need to know when to call external functions with a bl and when to call them with a blx - if you are coding in C I think the compiler should know which branch to use.
Reply all
Reply to author
Forward
0 new messages