Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing implementation for stdatomic #36

Open
craciunoiuc opened this issue Feb 14, 2023 · 2 comments
Open

Missing implementation for stdatomic #36

craciunoiuc opened this issue Feb 14, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@craciunoiuc
Copy link
Member

Musl currently does not support the C11 standard for atomic variables, and as far as I know, it will never support it.

Unfortunately, plenty of applications depend on the respective header files to compile successfully.

As such, to avoid problems, one thing we could do is to implement stdatomic ourselves using gcc calls, as Unikraft is currently compiled with mostly gcc.

@craciunoiuc craciunoiuc added the enhancement New feature or request label Feb 14, 2023
@TechScribe-Deaf
Copy link

TechScribe-Deaf commented Apr 20, 2024

I'm honestly confused, is there any technical reason why this can't be supported?
It doesn't make sense to go about making a standard libc implementation and not support C standard.

@craciunoiuc
Copy link
Member Author

As far as I remember, it heavily depends on the compiler used.

They decided to be compiler agnostic so no implementation for it.

That's why I still think we should add an option to make it available if needed as we use gcc and sometimes clang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants