HomeSpun Compiler Open Source
Batang
Posts: 234
As I need a spin compiler that can be easily cuctomized for the up coming Propbasic Studio I have contacted mpark about releasing the source for his HomeSpun compiler.
mpark has generously agreed to do so and has released it under the MIT license.
http://forums.parallax.com/showthread.php/106401-Homespun-Spin-compiler-0.31-Now-open-source?p=749832#post749832
Here is a Visual Studio 2012 project using the released source code.
I have made a minor change in the dissembler module but otherwise the code is as before. Now Build Version 0.3.2.
The Zip contains the VS2012 project as well as Debug and Release binaries.
Cheers
mpark has generously agreed to do so and has released it under the MIT license.
http://forums.parallax.com/showthread.php/106401-Homespun-Spin-compiler-0.31-Now-open-source?p=749832#post749832
Here is a Visual Studio 2012 project using the released source code.
I have made a minor change in the dissembler module but otherwise the code is as before. Now Build Version 0.3.2.
The Zip contains the VS2012 project as well as Debug and Release binaries.
Cheers
zip
852K
Comments
There is some kind of irony here, considering our recent debate re. the merits of open and closed source.
A point I made that I think was lost in that thread was you guys needed to concentrate on the steak and not the peas, QED the compilers not the IDE.
Cheers.
FWIW, Catalina uses a modified version of homespun (not sure what the mods are).
-Phil
Bean
I guess the key word in your quote is "eventually".
However the Propbasic compiler output does not currently work with Roy's spin compiler, I do not recall the reason at the moment so perhaps Bean can elaborate.
Despite mpark's self depreciating comments to the contrary the homespun compiler is a solid performer that has been around for several years now.
I or others are quite capable of updating or changing it for the P2, the same undertaking will be required for Roy's compiler.
As I doubt that there will be production release silicon for the P2 this year, this is somewhat academic.
Cheers.
Bean
http://code.google.com/p/homespun-spin-compiler/
Cheers.
If I recall it worked with mono on both, refer to the original thread for more info:
http://forums.parallax.com/showthread.php/106401-Homespun-Spin-compiler-0.31-Now-open-source?p=749832#post749832
Cheers
@@@ does what you expect @ or @@ to do but gets it right. That is is it gives the physical, actual, real HUB address of something. It works when initializing data in DAT sections, unlike the others. It gives the same result no matter where you use it, unlike @.
HomeSpun works on Linux under the mono runtime. It even works on Raspberry Pi and other ARM machines.
Thank you again mpark. Fantastic.
If that is the case then ProBasic Studio should run on those platforms as well.
The problem I had with mono is with the serial port. Maybe it has been fixed, but last I checked it only ran in polled mode. MS.net serial port is event driven of course and that led me into a false sense of having excellent multi-platform support. That's why I started using Qt.
The workaround is to run on another thread which is a blocking read, similar to sockets programming.
I have take the liberty of creating a git repository of the content of Batang's VS2012 project posted above here:
https://github.com/ZiCog/HomeSpun
I don't have any plans to tinker with that code. It's just there. I only added a README file with attributions, links to documantation and build instructions for Debian.
Batang, I have used HomeSpun on ARM Cortex A8 based boards running Debian and Linaro. Can't remember if I tried the Raspberry Pi. Wait a minute...
I updated the github readme with a note about what you need to install to run it on the raspi.
Not to worry, it's a fork, I'm most likely not going to make any changes. I'm a github man and prefere git to subversion anyway. I'll add a link in the README directing any passers by to Batang's repo.