THUMB or ARM mode

1,862 views
Skip to first unread message

yosemite

unread,
Jun 30, 2009, 3:22:51 PM6/30/09
to android-ndk
Hi,

I saw in my console window:
> Android NDK: Building for application 'two-libs'
> Compile thumb : twolib-second <= sources/samples/two-libs/second.c
> Compile thumb : twolib-first <= sources/samples/two-libs/first.c
> StaticLibrary : libtwolib-first.a
> SharedLibrary : libtwolib-second.so
> Install : libtwolib-second.so => apps/two-libs/project/libs/
> armeabi

Does "Compile thumb" mean the source code is compiled in THUMB mode?
Why it is compiled in thumb mode here?
Can I change it to ARM mode?

Thanks,

-M

David Turner

unread,
Jun 30, 2009, 6:12:18 PM6/30/09
to andro...@googlegroups.com

Yes, it means, in theory that it should build in thumb mode. However a typo in the build script force the generation of ARM code anyway.
In the next release, this will be fixed, and you will have the option to generate ARM code if you want as well, using one of the following techniques (already implemented by the full Android build system):

- use "LOCAL_ARM_MODE := arm" in Android.mk
- add an .arm suffix to the source file names you want to specifically compile in ARM mode (the rest will be compiled in the current LOCAL_ARM_MODE, which will be "thumb" by default)

I hope to make this available soon, with other necessary fixes, but don't have any ETA yet.

 

Thanks,

-M



Reply all
Reply to author
Forward
0 new messages