You'll find some small examples in the directory sdcc/device/examples/. More examples and libraries are available at The SDCC Open Knowledge Resource http://www.qsl.net/dl9sec/SDCC_OKR.html web site or at http://www.pjrc.com/tech/8051/.