Reply
Thread Tools
Posts: 3 | Thanked: 1 time | Joined on Jun 2011
#1
Hi,

I'd like to use gcc intrinsics for atomic memory access (__sync_lock_test_and_set etc.) in my application, but under scratchbox, a program with them doesn't link. Googling shows it's a known gcc problem, which

a) may be solved by using the correct -march switch - which would be the right value for Maemo? or

b) may not be solvable on ARM, since it (generally - not always) doesn't support the necessary atomic instructions.

So, did anybody need atomic variables on Maemo? How did you go about getting them?
 
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#2
The -march switch would be armv7-a (with the A standing for the A in Cortex-A8.
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Posts: 3 | Thanked: 1 time | Joined on Jun 2011
#3
Originally Posted by Hurrian View Post
The -march switch would be armv7-a (with the A standing for the A in Cortex-A8.
Still the same problem:

undefined reference to `__sync_lock_test_and_set_4'

I guess the intrinsics really aren't supported...
 

The Following User Says Thank You to vbar For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:46.