Shop OBEX P1 Docs P2 Docs Learn Events
C++ with propeller — Parallax Forums

C++ with propeller

sovsov Posts: 17
edited 2013-01-07 19:52 in Propeller 1
hello, I was wondering if there are any good links for teaching people how to use C++ for their propeller chip? smile.gif thank you!

Comments

  • RossHRossH Posts: 5,462
    edited 2010-05-24 02:37
    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
  • heaterheater Posts: 3,370
    edited 2010-05-24 03:18
    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.
  • DogPDogP Posts: 168
    edited 2010-05-24 06:23
    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
  • dirtrider444dirtrider444 Posts: 33
    edited 2013-01-07 19:52
    sov wrote: »
    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"
Sign In or Register to comment.