spin2cpp icon indicating copy to clipboard operation
spin2cpp copied to clipboard

Tool to convert Parallax Propeller Spin code to PASM, C++ or C

Results 32 spin2cpp issues
Sort by recently updated
recently updated
newest added

Here's all the stuff that'd be nice to do with the bytecode output. Mostly just so I don't forget when I come back to it. - [x] Add bytecode tests...

Should work, but doesn't: ```cpp struct SomeClass { int var; }; int main() { SomeClass c = {123}; _OUTA = c.var; } ```

Having come across the odd bit of code that seems to be old bitrotted gunk, I thought it'd be neat to hook some line-level coverage reporting to the test suite....

Local variables allocated on the stack should be de-allocated at the end of a scope. Presently they are all allocated throughout the function, and there is no facility for doing...

@totalspectrum I noticed this handy flag today: ` [ -f ] output list of file names` Would it be practical to add support for adding files to that list that...

``` PUB main(i) return byte[i] + (i+=1) 'return (i) + (i+=1) '' oddly enough, this evaluates correctly ``` `i` should increment after reading the byte, but increments before.

```spin PRI {+noinline} test(a,b) if a > 0 if b > 0 return 1 else return 2 else if b > 0 return 3 else return 4 'return test(b,a) +...

To follow up to P2LF, the stack smash fix does indeed work, but there's some other issues now. MegaYume cannot currently compile upper in Nu mode because it can't seem...

I feel there's some pretty decent size and performance savings to be had by re-doing `pushregs`/`popregs` . On the P2 side, mostly, anyways. If the other three save registers are...

At some point some of the currently experimental optimizations should become enabled by default. Thus, tracking issue. Features currently gated by the experimental flag: - [ ] All of `OptimizeBranchCommonOps`...