zodttd
Solving your premature emulation since the Tapwave
Want NEON instructions used in your apps built with GCC?
First read to try to understand a bit about what you're doing. It's for X86 but applies to NEON as well:
http://advogato.org/article/871.html
Then use these cflags in your compiler:
-march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O2 -ftree-vectorize -ftree-vectorizer-verbose=5 -ffast-math
-O3 could probably be used as well, but for this example, -O2 will suffice.
-ftree-vectorizer-verbose=5 will output debugging information as to whats stopping things from using NEON instructions. Fix these "notes" it outputs and you will start to see NEON get used more and more.
The verbose level can be changed as well, more importantly raised.
Just a tidbit to start things off I suppose.
First read to try to understand a bit about what you're doing. It's for X86 but applies to NEON as well:
http://advogato.org/article/871.html
Then use these cflags in your compiler:
-march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O2 -ftree-vectorize -ftree-vectorizer-verbose=5 -ffast-math
-O3 could probably be used as well, but for this example, -O2 will suffice.
-ftree-vectorizer-verbose=5 will output debugging information as to whats stopping things from using NEON instructions. Fix these "notes" it outputs and you will start to see NEON get used more and more.
The verbose level can be changed as well, more importantly raised.
Just a tidbit to start things off I suppose.