PIC + SDCC + CodeBlocks + Windows 7

Using the SDCC (Small Device C Compiler) is a greate way to fit more code into smaller Microchip PIC parts (Such as the PIC12F/PIC16F series) of microcontrollers. Having used the XC8 compiler for these parts in free mode, taking a look at the generated assembly will reveal alot of wasted moving of variables to the w register. This is simply to encourage people to upgrade and purchase the compiler. Having used the Pro version of the compiler at work it does indeed optimise these wasted statements away, and further optimises the code in some often interesting ways. By using SDCC … Continue reading PIC + SDCC + CodeBlocks + Windows 7