ARM NEON Assembly Programming in Android

OP #3112230
Hi All,

I am new to ARM as well as ARM NEON, i would like to code few of my c++ 
module to arm neon assembly module in android environment. I am using 
GNU assembler. I have faced problem in calling equivalent assembly 
module for my c++ module in my workspace. I have faced the following 
problems.

     1. When i enable both the c++ and assembly function, the compiler 
build the project successfully instead of showing error as "multiple 
definition for the function", and shows error in assembly program if any 
syntax error in the instruction.

     2. But when i enable assembly function alone and disable the c++ 
module, i got the error as "undefined reference" to the function, though 
i gave ".global function name" at the starting of the program.

     I don't know to make any changes in make file. My make file details 
as follows

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := ColorConv

#LOCAL_ARM_MODE := arm
LOCAL_ARM_NEON := true # remove this if you want armv5 mode

LOCAL_SRC_FILES :=\


LOCAL_CPP_EXTENSION := .cpp
LOCAL_CFLAGS := -mfpu=neon -DANDROID_NDK -fPIC -Wall -fexceptions 
-ffloat-store -Wuninitialized -g  -I hevc/hdr/

#ASFLAGS := -x assembler-with-cpp
#-DHAVE_NEON=1 -std=c99 -pedantic -v

LOCAL_C_INCLUDES :=$(LOCAL_PATH)/hevc/hdr/
LOCAL_LDLIBS := -llog -ljnigraphics -lGLESv1_CM -ldl -lz

include $(BUILD_SHARED_LIBRARY)


Please, guide me to solve this problem.

Thanks in Advance,
Vigneshwaran V

Reply

A question of your own? This thread is over 13 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.