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

Is it possible to make snmalloc freestanding? #670

Closed
SchrodingerZhu opened this issue Aug 24, 2024 · 3 comments
Closed

Is it possible to make snmalloc freestanding? #670

SchrodingerZhu opened this issue Aug 24, 2024 · 3 comments

Comments

@SchrodingerZhu
Copy link
Collaborator

I know the build is actually free of STL linkage. However, snmalloc is not freestanding buildable because of the following:

Could we include the <string> header conditionally?

@mjp41
Copy link
Member

mjp41 commented Nov 12, 2024

Could you explain a bit more what is needed to make this freestanding? If you could give a situation for use, and some build process that I can check this fits into that would be great.

@SchrodingerZhu
Copy link
Collaborator Author

My initial idea was to provide snmalloc to llvm-libc as an alternative allocator solution.

TO begin with, I think you can try compile snmalloc with -ffreestanding. I guess after the removal of `, this is already doable.

@mjp41
Copy link
Member

mjp41 commented Nov 20, 2024

Compiling with -ffreestanding works as far as I can tell.

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

Successfully merging a pull request may close this issue.

2 participants