This thesis makes use of instruction split , delay - slot scheduling and peephole optimization in porting . the new cross - compiler system , zltcg , not only supports the new target but also absorbs the old system ' s advantages on code optimization and portability . at first , this thesis describes the developing history and theories of compiler , especially on its architecture , bootstrapping and porting 本文根據(jù)新目標(biāo)機(jī)的特點(diǎn),利用了指令拆分,延時槽調(diào)度,窺孔優(yōu)化等技術(shù),既實(shí)現(xiàn)了對新目標(biāo)機(jī)的支持,又吸收了原有系統(tǒng)高度優(yōu)化和可移植的優(yōu)點(diǎn)。