Comment by ghoward
3 years 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....
[2]: https://git.yzena.com/gavin/bc/src/branch/master/gen/lib.bc
No comments yet
Contribute on Hacker News ↗