PDA

View Full Version : C++ with propeller



sov
05-24-2010, 10:22 AM
hello, I was wondering if there are any good links for teaching people how to use C++ for their propeller chip? http://forums.parallax.com/images/smilies/smile.gif thank you!

RossH
05-24-2010, 10:37 AM
Hi sov,

Can you be a bit more specific? There is no native C++ compiler for the Propeller (and may never be) but some of the emulation projects you will find in this forum (ZiCog and Zog spring to mind) may eventually allow you execute C++ code in a virtual machine executed on the Propeller.

If instead you mean you want to interact with a Propeller from a C++ program running on a PC, then this would be fairly easy - and you may find someone has already written some C++ components you can use.

Ross.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina (http://forums.parallax.com/showthread.php?p=844004)

heater
05-24-2010, 11:18 AM
No there are no such C++ for the Propeller links. There is no C++ for the Propeller.

Strangely enough I have been tinkering with a system to run C++ code on the Prop using a "virtual machine" interpreter. But its not a lot of use in such small memory space. No objects instantiated on the stack. No objects instantiated in the heap. Basically static objects only, about the same functionality as Spin "objects".

As for C++ on the PC talking to your Prop that is a general C++ query. Except you will want to learn how to talk through serial ports from C++ to your Prop. You may also want to download code to the Prop which means understanding the download protocol. Me, I'd just get my C++ to run BSTL (from BradC's BST programs) to do that.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.

DogP
05-24-2010, 02:23 PM
While there's no C++ compiler, there are several C compilers. Do you need any of the C++ specific stuff? The majority of C++ is just C, then they added classes and a few other things. I haven't tried any C compilers for the Prop, but off the top of my head I know of Catalina (free) and ICC (not free).

Pat

dirtrider444
01-08-2013, 03:52 AM
hello, I was wondering if there are any good links for teaching people how to use C++ for their propeller chip? :smile: thank you!

There is now a compiler. Look for "SimpleIDE"