As far as I know, there is no file support in the or1k toolchain. I recommend converting your input file to a character array that gets compiled into your program; it has worked for me on several occasions.
On Wed, Jan 14, 2015 at 11:13 PM, Stefan Kristiansson < [email protected]> wrote: > On Wed, Jan 14, 2015 at 11:02 PM, Ziqiang Patrick Huang < > [email protected]> wrote: > >> Is there a way to pass executable arguments to Or1ksim ? >> >> Say I have an executable called 'foo' and it takes in a file input.txt, >> simply append the file at the end of the command : >> >> sim -f sim.cfg foo input.txt >> >> does not work. >> >> >> > Even if this would be possible, how is your program supposed to be able to > read input.txt? > > _______________________________________________ > OpenRISC mailing list > [email protected] > http://lists.openrisc.net/listinfo/openrisc > >
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
