> Is there any best way to pass data in / out of the simulator?  I
> guess I can use the "run" program and set up a memory region for the
> input data, and write a little main() to feed it into through the
> algorithm.  But if there's an easier way, I'd like to hear about it
> before I do it the hard way.

If you link in your input data via a linker script, and write() out
the output data to stdout and redirect it, it should be pretty easy to
set up.

msp430-elf-run also has command line options to map files to memory
regions, see "msp430-elf-run --help" for help.

(er, a note about msp430-elf-run - the --trace-vpu command traces
register changes, not the "vpu")

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to