Shop OBEX P1 Docs P2 Docs Learn Events
spin2cpp SimpleIDE project conversion — Parallax Forums

spin2cpp SimpleIDE project conversion

RsadeikaRsadeika Posts: 3,837
edited 2013-07-13 03:31 in Propeller 1
I was just looking at the docs for spin2cpp, and I did not notice any easy way of doing a quick conversion of a SimpleIDE Spin mode project. I think, if at all possible, this would be a good enhancement for spin2cpp. It looks to me like Spin, SimpleIDE, and project mode will be available in some form, so it seems that doing a spin2cpp conversion of a project could benefit a lot of new users. This could be a good addition, but it seems like it would be a major project, something that the Parallax Education people might consider.

Ray

Comments

  • SRLMSRLM Posts: 5,045
    edited 2013-07-11 05:25
    Good idea. In the meantime, here is a tutorial for the command line version of spin2cpp:

    https://sites.google.com/site/propellergcc/documentation/tutorials/spin2cpp
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2013-07-12 19:31
    I may be misreading the question, but I am fairly sure spin2cpp can handle projects. I think you just tell it which is the 'top' object and make sure all the referenced objects are in the same directory.

    Or was the question something else?
  • RsadeikaRsadeika Posts: 3,837
    edited 2013-07-13 03:31
    Yes, what I had in mind is a situation where you deal with the Spin project file, xxxx.prj, and spin2cpp converts that Spin project to a C or CPP project, xxxxC.prj/xxxxCPP.prj. That means that when you double click on xxxxC.prj or xxxxCPP.prj, SimpleIDE now starts up in a project that contains all the necessary files for running the converted Spin project. Now when you decide to run the new program, it should just run, without any error codes popping up at compile time.

    At this time, for a new user, setting up the new C/CPP project could become cumbersome, if not confusing. Did I select the Spin file to have a "main" component at conversion time? Did I move all the necessary .c and .h file(s) into the proper locations in SimpleIDE? And there are probably some other things that I am missing at the moment. I think the goal is to make the PropGCC session, for a new user, as painless as possible. Has anybody even considered a backward conversion also, a PropGCC project being converted to a Spin project?

    Ray
Sign In or Register to comment.