3 ms·
I'm personally very fond of the decade-old no-brainer solution that is bin2c[0]: convert a binary to a humongous .c file with an array literal. It's inefficient
by skrebbel 12y ago
I'm personally very fond of the decade-old no-brainer solution that is bin2c[0]: convert a binary to a humongous .c file with an array literal. It's inefficient, and a bit stupid with source control, but it's entirely fool proof. Every compiler eats it. It just works. You compile it just once to a .o and then it doesn't slow down your build anymore.
If you just want the damn file in your executable and then move on with the stuff that actually matters, bin2c is a godsend.
[0] one of the many implementations appears to be on https://github.com/gwilymk/bin2c https://github.com/gwilymk/bin2c