When I am trying to test my application on device with default compiler setting, LLVM GCC 4.2, its giving me "Internal compiler error: Bus error", but it is working OK with GCC 4.2 and LLVM compiler 2.0.
What can be the possible reason/reasons for this error? Is it possible to d开发者_开发问答istribute your application with GCC 4.2?
"Bus error" usually means that your application is trying to perform an unaligned memory access, which is not allowed by default.
You can try either tell gcc
to generate only aligned memory accesses or set the unaligned memory access handling in the OS kernel (not sure whether it's possible in iOS):
echo 2 > /proc/cpu/alignment
精彩评论