I am struggling with the Eigen library compilation for iPhone 4, which has an ARM processor with the armv7 instruction set. While everything is working fine, when I specify the preprocessor, define EIGEN_DONT_VECTORIZE. But due to some performance issues, I would like to use optimized armv7 code.
No matter which compiler I use LLVM-GCC 4.2 or LLVM CLang 2.0, I always encounter compilation errors. I realized (or think better) that LLVM-GCC 4.2 is the only way to access these specific ARM-NEON instructions.
When I do not set EIGEN_DONT_VECTORIZE (and provide -mfloat-abi = softfp -mfpu = neon for gcc), I get the following gcc compiler error:
src / m3CoreLib / Eigen / src / Core / arch / NEON / PacketMath.h: 89: error: expected unqualified-id before '__ extension __'
I read about problems using the "old" gcc 4.2 and recommendations for using a newer version of gcc. I'm not sure, but I think this is not an option due to the approval of the app store. Is there anything else I can do to compile it for the iPhone.? Anyone who solved this?
Thanks Kay
Kay
source share