Here is a minimal C implementation of a spinlock "lock" operation using GCC's built-in atomics:
#include <stdbool.h>
void spin_lock(bool *l) {
while (__atomic_test_and_set(l, __ATOMIC_ACQUIRE))
;
}
I am concerned…
Here is a minimal C implementation of a spinlock "lock" operation using GCC's built-in atomics:
#include <stdbool.h>
void spin_lock(bool *l) {
while (__atomic_test_and_set(l, __ATOMIC_ACQUIRE))
;
}
I am concerned…
Hello,
I would like to download the GCC compiler for ARMv7-A. I would like it to support thumb and NEON instructions. Where can I get the latest version?
Also, are there any other open source compilers that meet the above requirements?
Thanks