Shop OBEX P1 Docs P2 Docs Learn Events
propgcc demos in Visual Studio (with download) — Parallax Forums

propgcc demos in Visual Studio (with download)

RaymanRayman Posts: 14,665
edited 2013-03-23 16:17 in Propeller 1
This is a work in progress, but I've collected a few of the demos and combined them
into one Visual Studio "solution", allowing you to compile and run Propeller GCC code
inside Visual Studio.

SimpleIDE isn't so bad, but I've been using Visual Studio for years now and it's my favorite.
Visual Studio isn't so good at editing Spin because it can't do the colors,
but it seems to working pretty good for propgcc code editing.

Since this isn't really Windows code, very few of the VS features actually work.
Really, the only things that work are "build" (funny icon with 2 blue down arrows) and "Start Debugging" (the green play button).

This is also the first time I've combined several "projects" into one solution. Usually, I just have one project.
Only trick here is they when you build or start from the menu, only the "StartUp Project" will run. This is the project shown in bold in the "Solution Explorer". You can pick a different project by right-clicking it and picking "Set as StartUp Project" and it will then turn bold.

Anyway, if you want to try this yourself, I've posted some instructions on my website, but even easier, you can just download this solution and open it with Visual Studio:
Demos_P1.zip

Each project has it's own build.bat file and they are all rigged for lmm or cmm mode (should work either way) and will run on Quickstart or other P1 setups. The "QS_POV" and "QS_WAM" are really aimed at just Quickstart (using the buttons).

You can edit the build.bat file to run in other modes.

Note: This requires that propgcc be installed in order to build and run the examples.

Comments

  • ersmithersmith Posts: 6,054
    edited 2013-03-23 15:01
    That sounds very cool, Rayman! Thanks for doing this.

    Does the "Start Debugging" icon actually launch gdb?
  • RaymanRayman Posts: 14,665
    edited 2013-03-23 15:08
    not yet, just propeller-load... just runs the program, no actual debugging
  • jazzedjazzed Posts: 11,803
    edited 2013-03-23 15:34
    Rayman wrote: »
    not yet, just propeller-load... just runs the program, no actual debugging

    Good job Rayman.

    Maybe you can get gdb debugging fully working before I do :)
    I hear CMM/LMM gdb is supposed to work with the p2test code now for P1/P2.
  • RaymanRayman Posts: 14,665
    edited 2013-03-23 16:17
    Maybe somebody should talk to these guys and see if they'd make a version for us:

    http://visualgdb.com/

    Or these guys:
    http://www.wingdb.com/
Sign In or Register to comment.