Schau mal hier:

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