I have been working on a program to convert from the C programming language to Spin.· I call the program CSPIN.· There is still a lot of work to be done it, but I feel it is ready for others to try it out.· The attached zip file contains the cspin.exe executable and clib.spin, which contains a few C string routines and printf.· It also contains a sample hello.c program and a readme file.
CSPIN is a command-line program, and it runs in a DOS window under the Windows operating system.· The program is simple to use.· Just type "cspin hello.c" to generate a hello.spin file.· With the -m option "cspin -m hello.c" will generate a few extra lines to set up the clock and start the serial I/O.
Give it a try and let me know what you think.
EDIT: The latest version of cspin is posted below, and also at the end of this thread. The current version is cspin084.