Books to Learn SDCC ?

Everything about programming, including VDP and Sound programming.
Post Reply
User avatar
Crazyboss
Site Admin
Posts: 220
Joined: 09 Aug 2012 21:45
Location: Sweden
Contact:

Books to Learn SDCC ?

Post by Crazyboss » 26 Oct 2018 12:03

Hi.

Never learned C, but its not to late :)

I know Basic and Pascal, and in some way assembler. Can any one recommend a BOOK for learning the Small Device C ?

I bet if I just pick a random C book, I will have problems, cause the target for those may be PCs.
//CLAUS - Webmaster at www.mtxworld.dk

User avatar
Dave
Posts: 623
Joined: 11 Aug 2012 18:16
Contact:

Re: Books to Learn SDCC ?

Post by Dave » 26 Oct 2018 14:13

The "standard" book for ANSI C is the "The C Programming Language" by Kernighan and Ritchie. It's old, published when they developed the language.

I'm not sure how legal it is, but you can get a copy here :

https://www.dipmat.univpm.it/~demeio/pu ... uage_2.pdf

It doesn't cover any of the fancy stuff in C++ or Windows, but covers the basic functions in, for example, stdio.h such as printf() for "printing" to the screen

regards
Dave

User avatar
AndyKey
Posts: 69
Joined: 12 Aug 2012 01:29
Location: Southampton, UK
Contact:

Re: Books to Learn SDCC ?

Post by AndyKey » 28 Oct 2018 13:34

Yes, the ANSI K&R C book is the one to read.
{{{ Andy

User avatar
Crazyboss
Site Admin
Posts: 220
Joined: 09 Aug 2012 21:45
Location: Sweden
Contact:

Re: Books to Learn SDCC ?

Post by Crazyboss » 01 Nov 2018 11:46

I guess its this one, books are much cheaper in UK than here.

Locally they want more than £66, So I think I will order it from UK even it had a higher shipping fee :)

https://www.abebooks.co.uk/978013110362 ... 103628/plp

If you want to check the like above, then if it dont open, try to open it in a new tap.
//CLAUS - Webmaster at www.mtxworld.dk

Post Reply