Forum: ARM programming with GCC/GNU tools ARM NEON Assembly Programming in Android

Author: vigneshwaran veluchamy (vigneshv)
Posted on:

Rate this post
0 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 

     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_ARM_NEON := true # remove this if you want armv5 mode


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_LDLIBS := -llog -ljnigraphics -lGLESv1_CM -ldl -lz


Please, guide me to solve this problem.

Thanks in Advance,
Vigneshwaran V


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.