Searching \ for 'C or not to C, was, or still is, TUTORIAL' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=c
Search entire site for: 'C or not to C, was, or still is, TUTORIAL'.

Truncated match.
PICList Thread
'C or not to C, was, or still is, TUTORIAL'
1999\10\20@112225 by Quentin

flavicon
face
Now I've been wondering....
I never had a chance to learn C or C++ over the years. I always dived in
straight at the Assembler language and I am actually quite comfortable
with it, but... (there is always a but, right? :) ):
I know that there are certain routines that can be done faster or easier
in C, so I reckon I might as well learn it as well.
So to rephrase the question: I want to learn C (or C++?) to program PICs
with, nothing else. Where would you suggest I start at?

Thanks
Quentin

1999\10\20@114040 by Darren Logan

picon face
Start with a "Learning to program in C" book for computers not PIC's.
>From there, write a couple of simple C programs (usually examples in the
book).

Once you've cracked the variable types and how to write functions using
simple i/o (eg keyboard input and screen output) then move over to PIC's.

There a dozens of free C compilers available from the web. (Keep to the
simple ones).

Once you've got the text "Hello World" up on your screen, and written a few
functions to compute fahrenheit / celcius conversions then you'll be well on
your way.

Remember... basics first. Don't try to run before you can walk. Mistakes are
easy to make with C when you start out. Eg, some code ends with a semi-colon,
other bits of code don't need the semi-colon. Certain ascii characters have
special meanings.
Keep it simple, learn the philosophy behind C.

It's a fantastic / powerful language, you're gonna love it.

Good luck.

Darren

1999\10\20@153417 by l.allen

picon face
> Now I've been wondering....
> I never had a chance to learn C or C++ over the years. I always dived in
> straight at the Assembler language and I am actually quite comfortable
> with it, but... (there is always a but, right? :) ):
> I know that there are certain routines that can be done faster or easier
> in C, so I reckon I might as well learn it as well.
> So to rephrase the question: I want to learn C (or C++?) to program PICs
> with, nothing else. Where would you suggest I start at?
>

Learn C and you're journey to the dark side will be complete.

Seriously... C is useful, C++ is not probably suitable (he gets ready
to be shot down in flames). My experience is C++ is an object based
'upgrade' of C and tends to bloat memory usage.
YES I have coded in both.
I would suggest C would be better suited to the new 18 series PICs
coming out and not the existing units unless code portability was a
major consideration.
My 3 c worth (NZ money)


_____________________________

Lance Allen
Technical Officer
Uni of Auckland
Psych Dept
New Zealand
_____________________________

More... (looser matching)
- Last day of these posts
- In 1999 , 2000 only
- Today
- New search...