Shop OBEX P1 Docs P2 Docs Learn Events
spin2cpp version 0.99 — Parallax Forums

spin2cpp version 0.99

ersmithersmith Posts: 6,054
edited 2012-10-21 10:32 in Propeller 1
I've posted version 0.99 of spin2cpp to http://code.google.com/p/spin2cpp. This version has a number of bug fixes to compile Spin objects that previously were not working right. It also has a (very preliminary) converter from PASM syntax to GNU GAS syntax. There are two ways to use this:

(1) If you specify --gas on the command line while converting to C or C++, instead of a "dat" array spin2cpp will output inline GAS assembly. This makes the resulting C/C++ somewhat closer to readable, since the PASM part is now inline assembly.

(2) If you specify --gas --dat then the DAT section is output as a GAS .S file.

For ordinary use I would *not* recommend using --gas, since the assembler built in to spin2cpp actually works quite well.

As always, please report any bugs or other issues.

Eric

Comments

  • RsadeikaRsadeika Posts: 3,837
    edited 2012-09-29 05:33
    I just tried doing the conversions on some of the Spin objects that were returning errors, everything is working as expected, no problems with the conversions. This is turning out to be an excellent program. Thanks Eric.

    Ray
  • RforbesRforbes Posts: 281
    edited 2012-10-10 14:00
    I'm really excited about trying this out. I've NO clue where to begin, but I'm going to dive right in and figure out how to convert my spin programs to c++, and then convert that to assembly. I have one particular program that runs in 7 cogs and does great, but it's slow. So if I can speed it up this way, I'll do the happy dance for a week.

    Thanks so much for your efforts here. I really appreciate it, and I'm sure many other folks do as well.

    Robert
  • ersmithersmith Posts: 6,054
    edited 2012-10-21 10:32
    I've updated the spin2cpp binaries to include various bug fixes. The version number is now 1.00, although it's not really a significant milestone. The differences from 0.99 are all bug fixes, there are no new features.

    As always, the web site for spin2cpp is http://code.google.com/p/spin2cpp.

    Eric
Sign In or Register to comment.