BS2 + C programming
chema
Posts: 14
Hi
Is it possible to program in "C" the basic stamp II·? Please, let me know-how...
What do I need ? I'd like to use Linux and Gnu C for programming the basic stamp
Help !!
Thank You
Is it possible to program in "C" the basic stamp II·? Please, let me know-how...
What do I need ? I'd like to use Linux and Gnu C for programming the basic stamp
Help !!
Thank You
Comments
Peter Verkaik released a port of the smallC compiler for the SX in this thread: http://forums.parallax.com/showthread.php?p=521232·there are also commercially availible compilers, and I think there·is·a target file for the SX in one of the open source C compilers specially modified for microcontrollers (sorry I can't remember which one).
If you want to program in C then you might consider the SX.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 3/12/2005 10:55:20 PM GMT
What Jon was saying above is that theoretically you could write a 'C' compiler whose output would be the appropriate PBasic 'tokens' -- but why bother? You still won't be able to do any fancy 'C' constructs (typedef, struct, float, etc) unless they map directly into the PBasic language. You might as well learn the PBasic language (it's MUCH simpler than 'C').
There do exist 'C' compilers for the PIC processor, and as Jon mentioned for the Ubicom SX processor, if you really want to go that direction.
Paul, Jon and Allan, thank you for your comments and appreciations.
Thanks
Regards
Adrian