Femtobasic compiler?
Rayman
Posts: 14,827
Shouldn't it be possible to compile Femtobasic into some kind of bytecode to make it faster?· Did anybody already look at this?· Seems like it could be possible to do this in SPIN even...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Comments
L
E This sounds like a great project!
A A Femtobasic compiler would be very cool indeed!
S
E (I wonder if Mike Green ever thought it would be taken as far as it has. [noparse]:)[/noparse]
D
OBC
T
H
I
S
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Ever since I saw the Catalina project, I have been thinking along the similar lines.·
Compiling·source to a sort of p-code and writing an p-code interpreter/kernel should be possible.·
The project that I found·that was similar was the JVM for the prop:
http://forums.parallax.com/showthread.php?p=703261
Certianly if it is something you are planning on tackling I will be more than happy to provide any help I can.
Here are a couple of threads with the files:
http://forums.parallax.com/showthread.php?p=714097
http://forums.parallax.com/showthread.php?p=755835
Thanks! I had forgotten that you had worked on that before. I will definately take a look again at the code.
Mike: Thanks for the links. I'll look at what you've done...
I think there are some people who would be interested in just coding and compiling BASIC in Windows and then downloading to the Prop...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
It would not be difficult to write a PC based BASIC compiler that targeted SPIN bytecode.. I've played with it myself a little bit, but I still believe SPIN is a far better fit for the interpreter. If people won't take the effort to learn an alternative language then the BASIC stamp forum is just a click away.
If all you have is a hammer..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"VOOM"?!? Mate, this bird wouldn't "voom" if you put four million volts through it! 'E's bleedin' demised!
If we're talking about programming in something that could be
both programmed and compiled on the Propeller, then BASIC is the
logicial choice as a starting point, as spin will require having multiple source
files opened during compile even if you were editing them one at a time.
I might feel differently if I had extensive STAMP background, but
if we program in BASIC on a PC for a Propeller, then you've pretty
much duplicated the STAMP.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
Go for it. I'd love to get my nine year old daughter playing with
something like this. She loves the Hydra Logo program.
Anything that provides that "instant feedback" can't go wrong.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
I think the direction I was going to go·is·similar to what Mike Green has been working on.· It would be nice to have programs edited, complied, and run on the Propeller.· Sounds like, with XMM, that a Catalina compiler running on a Propeller platform is possible.· Certianly gives hope that a BASIC compiler could be made as well.
MSFT has been working on SmallBasic (http://msdn.microsoft.com/en-us/devlabs/cc950524.aspx)· It is a pretty simple BASIC·with a little·nod to LOGO thrown in for good measure (for all those "turtle" fans out there).· It sounds like that is what you want to achieve for the Propeller.· Might be something you could at least look at and maybe 'borrow' some features from.
Post Edited (trodoss) : 5/15/2009 2:31:34 PM GMT
I know there is a project going on that aims to do something similar to this, but what is the big difficulty? If it could be done it would mean you could get instant feedback, high speed, and the ability to develop programs for the prop right on the prop.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
FemtoBasic is native for the Propeller, but it's a slow interpreter. You can already get instant feedback and the ability to develop programs for the Propeller right on the Propeller. You can even access some of the high speed functions like the cog counters.