Hi Mattew, Thanks for your reply, when you say converting the input file to a character array, do you mean actually having the data declared as variables in the source code, for example, if the input.txt has two columns of integers, just modify the source code to have two arrays of integers instead of reading from files.
Thanks, 2015-01-15 3:04 GMT-05:00 Matthew Hicks <[email protected]>: > 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 >> >> > -- *Ziqiang Huang* *Electrical and Computer Engineering* *Hudson 213c, Duke University* *Tel: 919-491-3677* *Email: [email protected] <[email protected]>*
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
