[sdiy] how to learn C?

Andre Majorel aym-htnys at teaser.fr
Sat Jan 8 13:48:20 CET 2011


On 2011-01-08 05:04 -0500, dan snazelle wrote:

> can anyone recommend a good book on C
> 
> and while you are it, can you recommend a good introductory
> book on programming in general

This is probably an unfashionable opinion but I think that the
first thing you should learn is how the hardware works. Bits,
bytes, memory addresses. How text, positive integers and
positive integers larger than 255 are encoded. The basic
operation of a microprocessor (program counter, jumps and
branches, stack, subroutine calls, loads and stores).

Once you have a clear picture of that in your head, much of C is
obvious. You will be able to write fast and compact software.
And you will have the satisfaction of knowing what you are doing
instead of throwing code at the compiler and hoping it works.

-- 
André Majorel http://www.teaser.fr/~amajorel/



More information about the Synth-diy mailing list