Shop OBEX P1 Docs P2 Docs Learn Events
Spinner2 - command-line Spin2 compiler for Windows and Linux — Parallax Forums

Spinner2 - command-line Spin2 compiler for Windows and Linux

Wuerfel_21Wuerfel_21 Posts: 5,068
edited 2021-12-11 22:29 in PASM2/Spin2 (P2)

So, thanks to the Spin2 compiler source being officially released by @cgracey, here's my command line frontend I hacked up.

Upsides this has over PNut:
- Real CLI tool (as opposed to PNut's weird cludge)
- doesn't spew temp files all over the place
- Native Linux binary
- Frontend written in portable C instead of Delphi (questionable upside)
- UTF-8 source support (in addition to UTF-16)
- Automated build process

Downsides:
- There's bugs, I guess. Maybe.
- Code is real jank
- No built-in loading. Use loadp2, it is good.
- No DEBUG support yet.
- Will always try to load dependencies relative to the current directory

I plan on maybe adding a preprocessor and other neat features... Contributions are of course welcome.
Right now I just want to see if it works OK for people.

GitHub link: https://github.com/Wuerfel21/spinner2

.. and you may find compiled binaries attached

Comments

  • Cluso99Cluso99 Posts: 18,069

    Excellent work Ada :)

  • @Cluso99 said:
    Excellent work Ada :)

    thancc

    I plan on maybe adding a preprocessor and other neat features

    A cursory look reveals flexspin's preprocessor to be relatively standalone (just needs flexbuf implementation, right, @ersmith ?), so I guess bolting that on would be quite trivial.

  • @Wuerfel_21 said:

    @Cluso99 said:
    Excellent work Ada :)

    thancc

    I plan on maybe adding a preprocessor and other neat features

    A cursory look reveals flexspin's preprocessor to be relatively standalone (just needs flexbuf implementation, right, @ersmith ?), so I guess bolting that on would be quite trivial.

    Yes. Roy and I put it into openspin, so it's already been used in at least one other compiler :).

  • Here's a fix for a terrible bug that made it impossible to compile projects with more than one object nesting level. How embarassing.

Sign In or Register to comment.