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

Support #embed #131

Open
jefftrull opened this issue May 2, 2021 · 4 comments
Open

Support #embed #131

jefftrull opened this issue May 2, 2021 · 4 comments

Comments

@jefftrull
Copy link
Collaborator

This mechanism for creating arrays from binary files at compile time looks likely to land in C++23

@hkaiser
Copy link
Collaborator

hkaiser commented May 2, 2021

Adding support for #embed would definitely be a Good Thing(tm), however it most likely wouldn't give the benefit of using the same by a 'real' compiler. Wave would have to translate the content of the file into a comma-separated sequence of bytes, while 'real' compilers could load things into memory directly without representing the content as a character sequence just to convert it back into the binary representation that will be embedded in the object file..

@jefftrull
Copy link
Collaborator Author

Just landed in C23, writeup here https://thephd.dev/finally-embed-in-c23

@spth spth mentioned this issue Feb 18, 2023
@jefftrull
Copy link
Collaborator Author

jefftrull commented Oct 10, 2023

A PR for this has been submitted to Clang now llvm/llvm-project#68620

@jefftrull
Copy link
Collaborator Author

Some thoughts on implementation here

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

No branches or pull requests

2 participants