Conversation

Jarkko Sakkinen

#embed is a welcome addition to #C, as using incbin has added a lot of unwanted boilerplate. #C23 #ISO #standard

1
0
0

The most trivial C program to take advantage of this would be something like:

int main(int  argc, char ** argv)
{
        const char __attribute__((unused)) payload[] = {
#embed <data/payload.bin>
        };

        return 0;
}
1
0
0

this could be used to remove a lot of .incbin boilerplate from #linux #kernel.

0
0
0