Font Size: a A A

The Design And Realization Of Compiling System Based On MIPS Instruction Set

Posted on:2016-01-03Degree:MasterType:Thesis
Country:ChinaCandidate:Y ShaFull Text:PDF
GTID:2348330536955071Subject:Computer technology
Abstract/Summary:PDF Full Text Request
MIPS processors are widely used in various of embedded products with high rate of growth,it has openness,wide availability and integrity ecological chain.The task of compiler is convert the source language into the target language program,its basic function contains lexical analysis,syntax analysis,semantic analysis,code optimization and code generation.This paper designs and implements a complete compiler oriented C language subset,it generation MIPS assembly code,use GCC cross compiler to generate the correct MIPS instruction set of the target code.In this paper,we use data flow analysis method to achieve a constant propagation,dead code elimination,and peephole optimization algorithm,presents a set of compiler optimization program,through experimental analysis of optimization results.At the end of this paper we describes the implementation of C compiler and optimization algorithm based on the MIPS instruction set,the evaluation of optimize performance was based on experiments.
Keywords/Search Tags:compiler, compiler optimization, MIPS assembly instructions
PDF Full Text Request
Related items