4 ms·
If you want to start playing with this now, my C preprocessor Cedro (https://news.ycombinator.com/item?id=28166125 https://news.ycombinator.com/item?id=28166125
by AlbertoGP 4y ago
If you want to start playing with this now, my C preprocessor Cedro (https://news.ycombinator.com/item?id=28166125 https://news.ycombinator.com/item?id=28166125, https://news.ycombinator.com/item?id=31193138 https://news.ycombinator.com/item?id=31193138) will insert the byte literals for the compiler:
https://sentido-labs.com/en/library/cedro/202106171400/#binary-include https://sentido-labs.com/en/library/cedro/202106171400/#bina...
That’s the same that `xxd` does, for instance, and it works with C89/C99/C11.
The advantage is that since it uses the same syntax as C23, it is easier to switch to using the compiler: just remove the Cedro pragma `#pragma Cedro 1.0 #embed` and it will compile as C23.
The source code (Apache 2.0) and GitHub link are at: https://sentido-labs.com/en/library/ https://sentido-labs.com/en/library/