[Lldb-commits] [PATCH] D14816: Use thumb instruction set for ldb-server on android arm

Tamas Berghammer via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 19 09:17:37 PST 2015


tberghammer added a comment.

In http://reviews.llvm.org/D14816#292929, @omjavaid wrote:

> -mthumb will force T32 instruction set while -marm will force A32.
>
> Best is not to use any of these flags to let the compiler decide best
>  possible instruction set combination.


I think because we specify -march=armv7-a to have the necessary 64 bit atomic instructions the compiler decide to use arm in every case. Forcing the instruction set to thumb reduces the size of the final release binary by ~30% while have negligible run time speed impact so it will help us speed up the iteration cycle (smaller lldb-server means we have to copy less data between host and target).


http://reviews.llvm.org/D14816





More information about the lldb-commits mailing list