[sdiy] OBJECT ORIENTED C in synth programming

Thomas Strathmann thomas at pdp7.org
Sat Apr 9 14:38:04 CEST 2011


On 4/8/11 20:32 , dan snazelle wrote:
> While we are on the topic of Learning about TYPEDEF's and STRUCTURES, can anyone recommend a book that covers C in relation to AVRs well?
>
> The reason I ask is that the C books I have, so often fall back on using PRINT as their example.
>
> It would be great to have a book on C that related things to the world of ADCs and DACS and TIMERS.

If you want to understand what you are doing you will best attain that 
understanding by simply working with the language and reading up about 
the way compilers deal (or expected to deal) with what you write. 
Learning a language and learning a hardware platform are orthogonal 
activities for the most part. This is especially true for C which is 
after all sort of the lingua franca of system programming. One book (K&R 
for example) supplemented by the C99 standard should be plenty of 
material to go by. I have the feeling that what you're looking for is 
the kind of knowledge that goes beyond examples, so best let the 
examples be and dive straight in. Write code and ask yourself "What will 
the memory layout look like for my data structures?". Perhaps a book 
about algorithms and data structures is in order?

	Thomas



More information about the Synth-diy mailing list