I have an exe program that requires several arguments to be passed to it, including a test file, input/output file, errorfile, print level, etc. They are passed to the executable by using an .rc batch script that simply runs the program and passes the file locations etc. to it.
This program started its life as an m68k executable that read an s-record test file (the rest of the inputs are text files or numbers), but has been changed and re-compiled to run on the i686. However, since the s-record format is unique to the m68k, the only way I can think of to pass the test file to the program is through the use of an object file.
There doesn't seem to be a lot of info about this so I was wondering if there is a way to essentially link the .o file when the program is run rather than when the program itself is linked? Since there will be multiple test files, it is not efficient to link each .o file with its own version of the main program.