3 ms·
Sure, but to add binary data to any executable on any platform is more involved. As an example, see [1]. That will turn any file into a C file with a C array,
by ghoward 4y ago
Sure, but to add binary data to any executable on any platform is more involved.
As an example, see [1]. That will turn any file into a C file with a C array, and I use it to embed a math library ([2]) into the executable so that the executable does not have to depend on an external file.
[1]: https://git.yzena.com/gavin/bc/src/branch/master/gen/strgen.c https://git.yzena.com/gavin/bc/src/branch/master/gen/strgen....
[2]: https://git.yzena.com/gavin/bc/src/branch/master/gen/lib.bc https://git.yzena.com/gavin/bc/src/branch/master/gen/lib.bc