From Assembler to C

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there I would like to start programming in C. I used to program in assembly but I want to change for the same reason as the most of you.

I know some about C and I have the IAR C Compiler. Is there any site, help, book, pdf or anything that could help me start?

Thank you very much.

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you, I'll check it

Michael.

User of:
IAR Embedded Workbench C/C++ Compiler
Altium Designer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've had to learn C since starting work on AVR's (although I have used other similar languages before). I found the following pretty useful:
http://publications.gbdirect.co.uk/c_book/

A few more can be found here.
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=22514

Ben
-Using IAR (& ocasionally CodeVision)
0.7734
1101111011000000110111101101

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Check out C Programming for Microcontrollers, also available directly from the Author himself at a much better price.

The problem with trying to learn C from a general programming book is that so much of the language is intimately tied to its libraries that trying to learn C programming in an abstract vacuum is almost a waste of time. Learn how to do useful things with AVR C first, then dig into the general C books to fill in the gaps and get the big picture. :-)

Also, keep in mind that there's a new twist (supported by AVR Studio's C compiler) -- "C99", which can loosely be described as "C++ perks and conveniences without the crushing weight of the standard libraries". In other words, C with parametric polymorphism (ability to have multiple functions with the same name that take different arguments) :-D

There's no place like ~/