Spin compiler?
Vampyr Noire
Posts: 13
I do not know much about the process involved in developing a compiled language vs an interpreted language, but I just have a question out of curiosity. Why was Spin on the Propeller implemented to be interpreted by an assembly program running on the chip versus being implemented as a language that is compiled into assembly? I assume that if it were compiled, it would take far less of a performance hit than it does being interpreted. Are compiled languages significantly more complex to develop or something? I guess I am basically asking what the advantages are to spin being interpreted versus compiled since it is designed to run on a specific platform. In the non-embedded world of programming, interpreted languages are usually only used where portability to other platforms is a concern (at least that is my understanding, I am still in my infancy as a programmer). Is this not really the case with embedded programming? If someone has any insight into this I would be very interested in hearing your thoughts!
And out of fear of being misinterpreted, I am not complaining, just wondering. The developers of this device are FAR wiser than I am about these things
Thanks!
~Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
And out of fear of being misinterpreted, I am not complaining, just wondering. The developers of this device are FAR wiser than I am about these things
Thanks!
~Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1+1=10
But anyways, if I understand correctly, the tradeoff is this:
-Compiled code offers higher performance at the cost of more memory consumption
-Interpreted code offers the abilty to do more with less memory consumption at the cost of lower performance
That about right? If so that suddenly makes the light go on in my head. It always seemed weird to me before that interpreted languages would be used in an embedded environment because all programming instructors I've ever had said that portability was the only real advantage to interpreted language. Of course, that outlook came from instructors who only programmed on computers, not embedded systems. Thanks for the eye-opener Paul!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Your assesment of the tradeoffs is essentially correct, it's a little more nuanced than that, but its not that important.
Interpretors on a full computer platform are ussually done for portability purposes, and back in the day it was done because it was faster than recompiling each time, but thats not much of an issue anymore.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chuck