Boost logo

Boost :

Subject: [boost] ARM thumb support in spinlock_gcc_arm.hpp
From: Jerry Napoli (jnapoli_at_[hidden])
Date: 2008-09-05 13:43:30


I'm trying to compile using boost 1_36_0 for ARMv6 Thumb for iPhone
development. The compiler used is gcc 4.0.x supplied with the iphone sdk.

I run into issues with the inline assembly inside
boost/detail/spinlock_gcc_arm.hpp. It generates a SWP instruction which
(AFAIK) is not supported in thumb mode. The gnu arm assembler gives me
a 'bad instruction ...' error. I'm able to work around it by modifying
spinlock.hpp to include spinlock_sp.hpp instead. But has anyone
addressed spinlock support for armv6 thumb?


Boost list run by bdawes at, gregod at, cpdaniel at, john at