Shop OBEX P1 Docs P2 Docs Learn Events
I need to learn C language . Is the Propeller good for this ? — Parallax Forums

I need to learn C language . Is the Propeller good for this ?

JoeJoe Posts: 184
edited 2010-01-14 14:49 in Propeller 1
Hi ,


I want to learn C language.

Is the Propeller good for this ?

I have to buy the C language?

I read something about Catalina C.
I This Catalina C the same C used for example with Arduino?

Thanks, Joe
PS: I have used Basic Stamps and I don't know about the Propeller.

Comments

  • heaterheater Posts: 3,370
    edited 2010-01-14 00:03
    No, don't by a C compiler just for learning C.

    You could indeed learn C on the Propeller with Catalina and I guess it is pretty much the same as the Arduino's C. Although doesn't Arduino use GCC which as a few extensions? I would not worry about the differences.

    You may be better of, at least initially, learning and experimenting with C on Windows or Linux.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    For me, the past is not over yet.
  • RossHRossH Posts: 5,519
    edited 2010-01-14 00:10
    Hi Joe,

    It depends on how familiar you are with computer programming in general, and also with embedded systems.

    If you are new to either of these, I'd say NO - you should probably first learn C in a more user-friendly environment where there are more support tools available.

    However, if you are familiar with programming in an embedded environment and just want to learn about C, then I'd say YES!

    To answer your specific questions:

    Catalina is open source and completely free.

    Catalina is an ANSI C compiler, and therefore will compile and run any ANSI standard C program. However, it is not the same compiler as that used for the arduino (which is gcc). But gcc is also reasonably ANSI compliant, so you should be able to transfer C programs between the two fairly easily.

    Ross.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Catalina - a FREE C compiler for the Propeller - see Catalina

    Post Edited (RossH) : 1/14/2010 1:06:52 AM GMT
  • ericballericball Posts: 774
    edited 2010-01-14 14:49
    You are trying to learn two new things at once - C and the Propeller. Unlike some microcontrollers, C is not the Propeller's lingua franca. Thus it would probably be advisable to first learn C on your PC and learn to use the Propeller using SPIN (the Propeller's native HLL) before trying to use C on the Propeller.

    There are several free C compilers for Windows - I use Borland's command line compiler.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Composite NTSC sprite driver: Forum
    NTSC & PAL driver templates: ObEx Forum
    OnePinTVText driver: ObEx Forum
Sign In or Register to comment.