Shop OBEX P1 Docs P2 Docs Learn Events
Open Spin Broken — Parallax Forums

Open Spin Broken

KyeKye Posts: 2,200
edited 2014-11-16 23:27 in Propeller 1
I'm not sure what's wrong here... but openspin clearly is not able to compile the source correctly. It produces a different output than the propeller tool that does not work.

Roy, would you know what's going on?

Comments

  • Heater.Heater. Posts: 21,230
    edited 2014-11-15 21:45
    Kye,

    OpenSpin is not broken. when I compile your code with openspin here on linux I get the same binary as your PropTool binary.

    Do you have a recent version of openspin? I am using a version I built from it's github repo a few months back.

    Out of curiosity I compiled your code with Michael Park's HomeSpun Spin compiler too compare with. Turns out that openspin and HomeSpun both compile your code to the same binary file that you have. See below.

    Build with HomeSpun and save the binary:
    $ HomeSpun.exe -b \!Half-Duplex_Tester.spin 
    Homespun Spin Compiler 0.32 - Batang Build
    parsing !Half-Duplex_Tester.spin
    parsing Half-Duplex_COMEngine.spin
    compiling !Half-Duplex_Tester.spin
    compiling Half-Duplex_COMEngine.spin
    writing 432 bytes to !Half-Duplex_Tester.binary
    $ mv \!Half-Duplex_Tester.binary \!Half-Duplex_Tester.binary.homespun
    
    Build with openspin and save the binary:
    $ openspin.linux \!Half-Duplex_Tester.spin 
    Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2013 Parallax Inc. DBA Parallax Semiconductor.
    Compiled on Oct 21 2013
    Compiling...
    !Half-Duplex_Tester.spin
    |-Half-Duplex_COMEngine.spin
    Done.
    Program size is 432 bytes
    $ mv \!Half-Duplex_Tester.binary \!Half-Duplex_Tester.binary.openspin
    
    Compare md5sums of all thee binaries.
    $ md5sum \!Half-Duplex_Tester.binary.openspin \!Half-Duplex_Tester.binary.homespun PropTool\ -\ \!Half-Duplex_Tester.binary 
    
    e74151c21a805e669345c70b480be980  !Half-Duplex_Tester.binary.openspin
    e74151c21a805e669345c70b480be980  !Half-Duplex_Tester.binary.homespun
    e74151c21a805e669345c70b480be980  PropTool - !Half-Duplex_Tester.binary
    

    P.S. It would be nice not to have to deal with file names with odd characters like "!". Having to escape that stuff all the time is annoying.
  • Roy ElthamRoy Eltham Posts: 3,000
    edited 2014-11-15 21:59
    Are you using the latest build/code available here: https://github.com/parallaxinc/OpenSpin ??
  • KyeKye Posts: 2,200
    edited 2014-11-16 07:21
    I'm using the version distributed with SimpleIde. Its from October 9 2013.

    @ Heater - I used the ! character for the file name because it promotes the file name to the top of the directory. Using a filename like that with a GUI on windows inst an issue. I started naming spin files this way because I'd have directories with hundreds of files.
  • KyeKye Posts: 2,200
    edited 2014-11-16 07:44
    Okay, I just tired the newest openspin version and everything worked. The version distributed with the newest version of SimpleIDE for windows does not work however... its so old it does not even output a version number.
  • Heater.Heater. Posts: 21,230
    edited 2014-11-16 07:52
    I don't know whey SimpeIDE is languishing so badly.

    I guess part of the reason is that there is now the open source PropellerIDE for Spin development http://forums.parallax.com/showthread.php/153921-Open-Propeller-Project-3-Propeller-IDE-V0.1-Package-Available

    I presume there is much more recent version of OpenSpin in that package.
  • jazzedjazzed Posts: 11,803
    edited 2014-11-16 09:03
    Thanks for pointing out the SimpleIDE openspin version problem.

    I've finally been granted permission to make SimpleIDE 1.0.0 (RC1) and am including the latest version.
  • Heater.Heater. Posts: 21,230
    edited 2014-11-16 09:09
    Yay, 1.0.0 RC1, well done !
  • Ken GraceyKen Gracey Posts: 7,392
    edited 2014-11-16 19:00
    Heater. wrote: »
    I don't know whey SimpeIDE is languishing so badly.

    I guess part of the reason is that there is now the open source PropellerIDE for Spin development http://forums.parallax.com/showthread.php/153921-Open-Propeller-Project-3-Propeller-IDE-V0.1-Package-Available

    I presume there is much more recent version of OpenSpin in that package.

    Huh? We're about to release our production candidate, version 1.0! It should be out this week, in fact. SimpleIDE is being used, every day, mostly in schools.

    Spin and C don't involve internal Parallax resource tradeoffs, so you know. The development tools are maintained by different people:

    SimpleIDE:
    Andy Lindsay, Stephanie Lindsay, Steve Denson, Eric Smith, David Betz, Jeff Martin

    PropellerIDE:
    Roy Eltham, Brett Weir, Jeff Martin

    The only commonality is Jeff, who you already know as our tool developer.

    Ken Gracey
  • Heater.Heater. Posts: 21,230
    edited 2014-11-16 23:27
    Ken,
    Huh? We're about to release our production candidate, version 1.0!
    Sorry, I did not mean to come over so disparagingly. I did not know v1.0 was imminent. I'm very happy to hear that.

    A big "well done" and great thanks to everyone involved. These projects have brought the Propeller development scene a long way since the dark days of the single platform Prop Tool.

    Also thanks to BradC for BST, MPark for HomeSpun, RossH for Catalina, Cliff Biffle for propasm and others who made working with the Propeller possible for many of us over the years.
Sign In or Register to comment.