1. Are you ready for the Galaxy S20? Here is everything we know so far!

Compiling assembly code using Android NDK

Discussion in 'Android Development' started by srikanth946, Feb 9, 2011.

  1. srikanth946

    srikanth946 Lurker
    Thread Starter

    Hi,

    I am trying to compile the assembly code, which is required for my project.
    I added my source file ( .s extension) in the Android.mk file.

    LOCAL_SRC_FILES += src/arm/math_arm.s

    When i tried to execute the ndk-build, i am getting these errors.

    src/arm/math_arm.s:1: Error: unknown pseudo-op: `.state32'
    src/arm/math_arm.s:3: Error: non-constant expression in ".if" statement
    src/arm/math_arm.s:6: Error: bad instruction `arm9_v5e_flag '
    make: *** [/u/obj/local/armeabi/objs-debug/src/arm/math_arm.o] Error 1


    Can any one help for me?


    Thanks,
    Srikanth
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - Compiling assembly code
  1. jensdraht1999
    Replies:
    0
    Views:
    237
  2. fun and education
    Replies:
    0
    Views:
    311
  3. KNOW_HOW_PROTECTION
    Replies:
    1
    Views:
    386
  4. _wigfield_
    Replies:
    3
    Views:
    1,182
  5. KerenSophia
    Replies:
    0
    Views:
    282
  6. Sunny Rio
    Replies:
    1
    Views:
    578
  7. App Update
    Replies:
    1
    Views:
    501
  8. developer Sout
    Replies:
    1
    Views:
    655
  9. Samsung
    Replies:
    0
    Views:
    811
  10. nnnn1221347
    Replies:
    11
    Views:
    3,523

Share This Page

Loading...