Shop OBEX P1 Docs P2 Docs Learn Events
Spin compiler — Parallax Forums

Spin compiler

simonlsimonl Posts: 866
edited 2006-09-14 14:53 in Propeller 1
In a similar vain to someone else's post, I wonedr if there are any plans to produce a SPIN to native PChip assmbly language compiler?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,

Simon

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-09-14 14:53
    I suspect there won't be a SPIN to native Propeller chip compiler any time soon. With the very small (512 instructions) cog memory, efficiency is very important and it's very very difficult to make a code optimizer as good as a person for such small programs and complex instructions. In addition, most need for assembly is for high speed I/O drivers with very specific timing constraints and there is no way to specify the timing constraints in SPIN to communicate to the compiler.

    Someone might do it as an experiment or university project, but it's a huge amount of work to do properly and there's little need. Most everything can be done in SPIN and, when the need for assembly surfaces, hand optimization is almost always needed.
Sign In or Register to comment.