Shop OBEX P1 Docs P2 Docs Learn Events
GCC Tutorials — Parallax Forums

GCC Tutorials

ShawnaShawna Posts: 508
edited 2013-01-22 15:15 in Propeller 1
Hello,
Do you guys have any links to GCC guides or tutorials, or books that start at the ground up? I have been unable to find any tutorials that I understand.
Thought I would play with C a little bit, having problems getting started. I found some demos that work but I don't understand the synthax. I am using the SimpleIDE.
Thanks
Shawn

Comments

  • LeonLeon Posts: 7,620
    edited 2013-01-22 13:46
    The C Programming Language, by Kernighan and Ritchie.
  • Cats92Cats92 Posts: 149
    edited 2013-01-22 14:20
    During last summer i have read and tested different tutorials for GCC / and or / Simple IDE.

    Very usefull pages of code letting some hope of further exemples.

    But since summer it seems that other tasks have much priority.

    Hope updates and new exemples.

    BTW my nigtmare are compiler/linker messages like "file **** not found"
    Strangely , it seems that my programs are always loosing the paths to get the files they need ! How to fight that in Simple IDE ?

    Jean Paul
  • ShawnaShawna Posts: 508
    edited 2013-01-22 14:23
    So it looks like C is C no matter what you are using it for, the syntax is the same. Is the difference then the include file for the prop(#include <propeller.h>)? Where does a person for instance change the oscillator speed? Is there a manual for the include that tells how to use the different commands? Such as starting new cogs or turning a pin on or off?
    Still lost
    Thanks
    Shawn
  • SRLMSRLM Posts: 5,045
    edited 2013-01-22 14:38
    The core of C remains the same, no matter what you are using it for. The main differences with the Propeller are found in propeller.h (which has specific Propeller functions) and in the compile options (namely the memory model).

    This page (and site) may be of interest: https://sites.google.com/site/propellergcc/documentation/faq

    I'll go ahead and update the FAQ with a few more of your questions.
  • ShawnaShawna Posts: 508
    edited 2013-01-22 15:15
    Thanks you guys.
    I have started a lot of threads lately and have left them all open with no resolve. Even though I have not conquered very many of these trivial tasks, I have learned a lot. And by asking questions and receiving feedback from you guys I find myself having more questions than answers, and not enough time to explore.

    The reason I am contemplating C again is because I would like to do floating point math and I would like to do it as fast as possible. I am assuming that doing the floating point math in C will be 2.5 times faster. Am I chasing a dream here? Also a big problem is the objects, there is no way I am going to be able to write programs for full duplex or I2C routines. Is there an object library for C? It also looked like it was possible to load a Spin file into C, maybe I can do that with I2C.
    Still brain storming, the link in post #5 looks to be very helpful, and I looked up The C Programming Language, by Kernighan and Ritchie there was a C tutorial on their site that also looks promising.

    Shawn
Sign In or Register to comment.