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://sdccokr.dl9sec.de/ web site or at http://www.pjrc.com/tech/8051/.