ARM NEON Assembly Programming in Android

OP #3112230
Rate this post
• ▲ useful
▼ not useful
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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.