Hey man,
Yeah setting up SDCC as you r default compiler s no problem with Code Blocks.
By default it searchs for it under C:\sdcc but if yo use autodetect it mght goto program files/sdcc
anyways, just goto Setting > Compiler and Debugger.. > then selct SDCC from the available compiler options,
once you instal SDCC of course.
I would suggest installin git in C:\sdcc because a lot of compiler have a brain fart when there are spaces in the path.
Just make sure to check under Search Directories toamke sure your compiler and linker are pointing to the correct directory.
And under Toolchains and Additional PAths to also make sure that everything is pointing where it shoul dbe, such as your ..\include or ..\bin directories or any other libraries ou may be using.
I've used SDCC with Code Blocks before and its not a bad choice for learning to program the PIC in C, MPLAB can be a little harder to learn at first.
Well, I hope that helped, if not, let me know in depth what probems you are having and i'll help u out.
Good luck and happy programming. PICS are fun.