das tutorial auf mikrocontroller.net kann ich dir empfehlen:

http://www.mikrocontroller.net/artic...R-GCC-Tutorial