spin2cpp version 1.92
ersmith
Posts: 6,053
There's a new release of spin2cpp, available at:
https://github.com/totalspectrum/spin2cpp/releases/tag/v1.92
This fixes an incompatibility between spin2cpp output and gcc5, as well as fixing the --binary output flag to spin2cpp. spin2cpp can now be used as basically a drop in replacement for openspin/bstc:
https://github.com/totalspectrum/spin2cpp/releases/tag/v1.92
This fixes an incompatibility between spin2cpp output and gcc5, as well as fixing the --binary output flag to spin2cpp. spin2cpp can now be used as basically a drop in replacement for openspin/bstc:
spin2cpp --binary -Os -mcmm foo.spinwill compile foo.spin and all its dependent submodules in CMM mode, and place the result in "foo.binary".
Comments
No, not yet (I forgot, sorry).
propeller-gcc should be up to date now (assuming I handled the submodule update correctly -- I'm still learning my way around that part of git!)
Are you saying that it now compiles spin code directly to a binary file that one can program the Prop with?
Does it convert first to C++ and then to binary?
Nice touch, and implies the Spin2CPP needs no manual fixing
I wonder if any Debug information is generated along the way, and does that use the Line# from Cpp, or can it use the Spin source lines ?
Sorry if I was unclear, but yes, it converts to C++ and then calls PropGCC to convert the code to binary (as jmg suggested). Debug information is generated if a -g argument is given on the command line, but that's only useful if you do ELF output (not binary) and it uses the C++ source lines. Using the Spin source lines would be a nice touch, though -- I'll look into it.
(And to further clarify -- compilation is optional. You can still use spin2cpp to just output C/C++ files, as before; it's only if you give a --binary or --elf option that it compiles those.)
Eric