Font Size: a A A

GCC Compiler Porting Based On MB64Processor

Posted on:2013-03-12Degree:MasterType:Thesis
Country:ChinaCandidate:T G XiaoFull Text:PDF
GTID:2298330422973883Subject:Electronic Science and Technology
Abstract/Summary:PDF Full Text Request
In the phase of processor design and development, system-level tests need thesupport of compiler. Similarly, if we want to take full advantage of the performance ofthe high-performance processor, we also require the compiler. In order to solve theseproblems of the heterogeneous architecture made up of CPU and GPU, which hasrelatively high power consumption and heavy the data transfer between CPU and GPU,the Homogeneous General Purpose Stream Processor (HGPSP) architecture is proposedby our research group. The architecture which is made up of many64-bits cores calledMB64, can eliminate the data transfer between CPU and GPU, and also can increase theresource utilization.This thesis accomplished the porting work of GCC to MB64and the mainly workof this thesis as follows:First of all, after analyzing the software architecture of GCC, and studying itsretargetable method, especially its machine description method and its machinedescription files, these files is rewritten to implementing porting GCC to MB64manually.Secondly, based on analyzing the method of describing the processor architectureusing the Architecture Description Language(ADL), Sim-nML,including its syntaxand semantics, resource-usage model, as well as syntax and semantics of attributes,mainly focus on researching the quickly implementation method of compiler combiningthe ADL, Sim-nML, and GCC. This quickly method of porting GCC requires todescribing the machine information of MB64using Sim-nML firstly, and then, itscorresponding generation tools transform these architecture description files to GCCback-end files of MB64.Finally, this thesis tests the work of porting GCC to MB64from three levels. Theresults of Instruction-level tests show that this retargeted compiler can emit all ofassemble instructions of MB64correctly. The common C language construction-leveltests proved this compiler can generate corresponding construction using assemblelanguage. The relatively complicated algorithm program-level tests prove perfectly thefunctional correction of this compiler.
Keywords/Search Tags:MB64, GCC, Architecture Description Language, Sim-nML
PDF Full Text Request
Related items