I have two binary(executable) files A and B. At runtime, A may call B depending on given parameters. Is it possible to pack the two binaries into one file? So that, when needed, A do not have to look for B from other places. I have c source files for both. Each of them has a main() function, and I do not wish to modify the sources. It is also acceptable if there is a way to generate one executable at compile time.
↧