Combining Spin and C[++]
DavidZemon
Posts: 2,973
What are all the different ways that you can program a propeller with Spin and C/C++? I currently know of the following
I'd like to find some way to integrate all of these options into PropWare, but I need to know what those options are first.
PropWare's support of various Spin options is documented in this GitHub issue.
- Spin only (compiled to native byte code, via openspin)
- Spin only (translated via spin2cpp and compiled via PropGCC)
- C/C++ only (compiled via PropGCC)
- C/C++ main function calling extracted binary from a Spin file (via spin2cpp w/ --dat option)
- C/C++ main function calling c-wrapper functions (from spinwrap) from Spin file (compiled via openspin [or spin2cpp])
- Spin extracted from C (translated via cspin and compiled with openspin)
I'd like to find some way to integrate all of these options into PropWare, but I need to know what those options are first.
PropWare's support of various Spin options is documented in this GitHub issue.
Comments
Eric
That's exactly what I'm looking for! Thank you
I'm looking at any combination of Spin and C/C++. I'd like to find some way for PropWare to be a one-stop-shop for building your Propeller application.
Far as I know, theres no way to convert C/C++ to Spin. Someone can correct me if I'm wrong.
There are ways of calling C/C++ functions from Spin though. My very limited knowledge knows of at least PropForth. Presumably those files are compiled with PropGCC into object files... and then how are they combined into the executable and placed on the board for execution? What other ways can a program written in Spin (and PASM) call C/C++ functions?
very cool!
I think, even if I were never to integrate these options into PropWare, this thread can be a great resource for anyone playing with the Propeller