[cortex-m0] problem with using sync built-in functions for atomic memory access
Asked by
Mallikarjun
Hi,
I want to use sync built-in functions for atomic memory access
fro the target arm cortex-m0.
But i do get error when i use them.
For example:
int main(void)
{
int x = 2;
__sync_
return x;
}
I get following error:
undefined reference to `__sync_
I used following command:
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -c test.c
Thanks for your help,
Mallikarjuna
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Terry Guo
- Solved:
- Last query:
- Last reply:
To post a message you must log in.