You can do it in multiple ways.
- Add -S flag to
LOCAL_CFLAGS in your Android.mk. Then run ndk-build. But this will fail on first file, so you won't get assembler code on later files.
- Invoke
arm-linux-androideabi-gcc -S file.cpp manually from commandline on needed file. Additionally you could need to pass correct includes defines. Run ndk-build V=1 to see exactly what commandline it uses
- run build normally to get shared library (.so file). And run
arm-linux-androideabi-objdump -d libYourLibrary.so >disasm.txt. This will dissasembly whole library, not just one .cpp file.