This paper analyzed the internal architectures and retargeting mechanisms of GCC,and pointed out that GCC was very convenient to be retargeted because of its separate and relatively independent front end and back end.By using Nios,a processor for embedded