Get the latest tech news
LLVM Clang 19 Lands Support For C23's #embed
Merged today to LLVM Clang 19 Git is support for the #embed resource inclusion mechanism that is an approved C23 feature
Merged today to LLVM Clang 19 Git is support for the #embed resource inclusion mechanism that is an approved C23 feature. Current state of the art for working with such static data in C includes creating files which contain solely string literals, directly invoking the linker to create data blobs to access through carefully named extern variables, or generating large brace-delimited lists of integers to place into arrays. After months of work, that code was merged this morning and now makes LLVM Clang the first of the major open-source compilers supporting this directive.
Or read this on Phoronix