基于MB64處理器的GCC移植
本文選題:MB64 + GCC。 參考:《國防科學(xué)技術(shù)大學(xué)》2012年碩士論文
【摘要】:在處理器的設(shè)計(jì)研發(fā)過程中,系統(tǒng)級(jí)測(cè)試需要編譯器的支持。高性能處理器性能的發(fā)揮同樣也需要編譯的支持。為解決CPU和GPU異構(gòu)架構(gòu)導(dǎo)致的處理器功耗大,分離的存儲(chǔ)之間數(shù)據(jù)通信頻繁等缺點(diǎn),本課題組提出了同構(gòu)通用流處理器體系結(jié)構(gòu),,其以64位RISC核MB64作為流多核中的流核心,片內(nèi)共享存儲(chǔ)消除了CPU與GPU存儲(chǔ)分離帶來的數(shù)據(jù)傳輸開銷,同時(shí)也提高了芯片資源利用率。 本論文針對(duì)該64位流核心MB64的特點(diǎn),完成GCC向MB64的手動(dòng)移植,并結(jié)合體系結(jié)構(gòu)描述語言和GCC重定向特性,利用相關(guān)的生成工具,實(shí)現(xiàn)了GCC向MB64的快速移植。主要工作包括: 1.分析編譯器GCC的體系結(jié)構(gòu),研究其移植方法和多目標(biāo)機(jī)制,重點(diǎn)研究編譯器GCC中與目標(biāo)機(jī)器相關(guān)的機(jī)器描述文件以及它所描述目標(biāo)機(jī)器信息的規(guī)范。通過手動(dòng)重寫這些文件,來實(shí)現(xiàn)對(duì)GCC重定向到MB64處理器上。 2.鑒于手動(dòng)移植GCC過程需要耗費(fèi)大量的時(shí)間和精力,本論文在深入分析體系結(jié)構(gòu)描述語言Sim-nML對(duì)處理器進(jìn)行描述的編程模型的基礎(chǔ)上,其中包括,指令的語法、語義,尋址模式,寄存器、存儲(chǔ)器的定義,資源使用模型,研究了Sim-nML語言和GCC相結(jié)合自動(dòng)生成MB64編譯器的方法。該方法是通過編寫描述MB64體系結(jié)構(gòu)特征的Sim-nML語言描述文件,再將描述文件交給自動(dòng)生成工具處理,自動(dòng)生成GCC后端機(jī)器相關(guān)的描述文件,快速實(shí)現(xiàn)GCC到MB64處理器上的移植。 3.分別從三個(gè)層次對(duì)所移植的編譯器進(jìn)行了測(cè)試。(1)指令集的測(cè)試結(jié)果表明該編譯器能正確編譯出MB64中的每一條匯編指令;(2)程序基本結(jié)構(gòu)層次的測(cè)試,說明了該編譯器能將C語言中常用結(jié)構(gòu)正確編譯出來;(3)復(fù)雜算法程序的測(cè)試,從整體上驗(yàn)證了該編譯器功能的正確性。
[Abstract]:In the process of processor design and development, system-level testing needs the support of the compiler. The performance of high performance processors also requires compilation support. In order to solve the problems of high power consumption and frequent data communication between separate storage and CPU / GPU heterogeneous architecture, our team proposed the architecture of isomorphic universal stream processor, which uses 64-bit RISC core MB64 as the stream core in streaming multi-core. In-chip shared storage eliminates the data transmission overhead caused by the separation of CPU and GPU storage, and improves the utilization of chip resources. In this paper, according to the characteristics of the 64-bit stream core MB64, the manual migration of GCC to MB64 is completed. Combining with architecture description language and GCC redirection feature, the fast porting of GCC to MB64 is realized by using relevant generating tools. The main tasks include: 1. This paper analyzes the architecture of compiler GCC, studies its migration method and multi-objective mechanism, and focuses on the machine description file related to target machine and the specification of target machine information in compiler GCC. Redirect the GCC to the MB64 processor by rewriting these files manually. 2. Since manual migration of GCC requires a lot of time and effort, this paper analyzes the programming model of architecture description language Sim-nML, which includes syntax, semantics, addressing mode of instructions. The definition of register, memory and resource usage model are studied. The method of combining Sim-nML language and GCC to generate MB64 compiler automatically is studied. In this method, the description file of Sim-nML language is written to describe the characteristics of MB64 architecture, and then the description file is handed over to the automatic generating tool to automatically generate the related description file of the GCC back-end machine, so that the porting of GCC to MB64 processor can be realized quickly. 3. The test results of the transplanted compiler from three levels show that the compiler can compile each assembly instruction in MB64 correctly and test the basic structure of the program. It is shown that the compiler can compile the common structure of C language correctly into a complex algorithm program, and the correctness of the compiler function is verified as a whole.
【學(xué)位授予單位】:國防科學(xué)技術(shù)大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2012
【分類號(hào)】:TP332
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 Robert Cravotta;;可配置處理器應(yīng)用日趨紅火[J];電子設(shè)計(jì)技術(shù);2003年11期
2 劉磊;鄒候文;唐屹;;一種可編程安全處理器體系結(jié)構(gòu)的研究與實(shí)現(xiàn)[J];廣州大學(xué)學(xué)報(bào)(自然科學(xué)版);2006年04期
3 張錚;趙榮彩;顏峻;邰銘;陳科;;網(wǎng)絡(luò)處理器體系結(jié)構(gòu)和應(yīng)用綜述[J];信息工程大學(xué)學(xué)報(bào);2006年04期
4 張怡,孫志剛;基于IPSec的下一代高性能安全處理器的體系結(jié)構(gòu)[J];國防科技大學(xué)學(xué)報(bào);2003年02期
5 岳虹;戴葵;王志英;;一種面向數(shù)字信號(hào)處理的嵌入式處理器體系結(jié)構(gòu)設(shè)計(jì)[J];計(jì)算機(jī)工程與科學(xué);2006年10期
6 許珊琳;;適合嵌入應(yīng)用的嵌入式處理器[J];中國集成電路;2009年02期
7 張磊;王穎;陳云霽;徐志偉;張立新;;可重塑處理器:用戶可定義的加速器中處理器架構(gòu)[J];網(wǎng)絡(luò)新媒體技術(shù);2012年06期
8 Robert Cravotta;;一個(gè)處理器能兼顧控制與信號(hào)處理嗎?[J];電子設(shè)計(jì)技術(shù);2002年07期
9 朱丹;李暾;郭陽;李思昆;;微處理器體系結(jié)構(gòu)級(jí)測(cè)試程序自動(dòng)生成技術(shù)[J];軟件學(xué)報(bào);2005年12期
10 ;高性能處理器云集市場[J];每周電腦報(bào);1997年15期
相關(guān)會(huì)議論文 前3條
1 宋緋;劉曉寧;;DSP/MCU結(jié)構(gòu)的新型處理器[A];第九屆全國青年通信學(xué)術(shù)會(huì)議論文集[C];2004年
2 趙秋平;楊燦群;王鋒;;LBM算法在Cell處理器上的實(shí)現(xiàn)和優(yōu)化[A];2008'中國信息技術(shù)與應(yīng)用學(xué)術(shù)論壇論文集(二)[C];2008年
3 周巍;孫冰;戰(zhàn)立明;呂建華;王國仁;于戈;;基于DOM模型的XML查詢處理器的設(shè)計(jì)與實(shí)現(xiàn)[A];第十八屆全國數(shù)據(jù)庫學(xué)術(shù)會(huì)議論文集(研究報(bào)告篇)[C];2001年
相關(guān)重要報(bào)紙文章 前10條
1 ;處理器上演多核大戲[N];計(jì)算機(jī)世界;2005年
2 心元;PC“心臟”的搏擊[N];計(jì)算機(jī)世界;2004年
3 清華大學(xué)微處理器與SoC技 術(shù)研究中心 王海霞 汪東升;顛覆傳統(tǒng)理念[N];計(jì)算機(jī)世界;2005年
4 清華大學(xué)微處理器與SoC技術(shù)研究 中心 汪東升 王海霞 張悠慧 李兆麟;CMP 開啟處理器效能時(shí)代[N];計(jì)算機(jī)世界;2005年
5 江蘇 netfan;體現(xiàn)速度與性能[N];電腦報(bào);2004年
6 四川 王毅;變革進(jìn)行時(shí)[N];電腦報(bào);2004年
7 清華大學(xué)微處理器與SoC技術(shù)研究中心 汪東升;多核技術(shù)天地廣闊[N];計(jì)算機(jī)世界;2006年
8 本報(bào)記者 李獻(xiàn) 王皓;2002年服務(wù)器四大景觀[N];計(jì)算機(jī)世界;2003年
9 ;MontaVista Linux 2.1跨平臺(tái)[N];中國計(jì)算機(jī)報(bào);2002年
10 ;CPU技術(shù)進(jìn)步牛氣沖天[N];計(jì)算機(jī)世界;2004年
相關(guān)博士學(xué)位論文 前10條
1 魏繼增;可配置可擴(kuò)展處理器關(guān)鍵問題研究[D];天津大學(xué);2010年
2 霍文捷;嵌入式處理器安全運(yùn)行機(jī)制的研究與設(shè)計(jì)[D];華中科技大學(xué);2010年
3 從明;類數(shù)據(jù)流驅(qū)動(dòng)的分片式處理器體系結(jié)構(gòu)[D];中國科學(xué)技術(shù)大學(xué);2009年
4 李勇;異步數(shù)據(jù)觸發(fā)微處理器體系結(jié)構(gòu)關(guān)鍵技術(shù)研究與實(shí)現(xiàn)[D];國防科學(xué)技術(shù)大學(xué);2007年
5 徐光;分片式流處理器體系結(jié)構(gòu)[D];中國科學(xué)技術(shù)大學(xué);2010年
6 任永青;邏輯核動(dòng)態(tài)可重構(gòu)的眾核處理器體系結(jié)構(gòu)[D];中國科學(xué)技術(shù)大學(xué);2010年
7 黎鐵軍;嵌入式流媒體處理器體系結(jié)構(gòu)技術(shù)研究[D];國防科學(xué)技術(shù)大學(xué);2005年
8 黃海林;高可靠處理器體系結(jié)構(gòu)研究[D];中國科學(xué)院研究生院(計(jì)算技術(shù)研究所);2006年
9 劉光輝;高效處理器容錯(cuò)技術(shù)研究與實(shí)現(xiàn)[D];國防科學(xué)技術(shù)大學(xué);2013年
10 溫璞;面向科學(xué)計(jì)算的PIM體系結(jié)構(gòu)技術(shù)研究[D];國防科學(xué)技術(shù)大學(xué);2007年
相關(guān)碩士學(xué)位論文 前10條
1 曾斌;分片式處理器體系結(jié)構(gòu)上的超塊優(yōu)化技術(shù)[D];中國科學(xué)技術(shù)大學(xué);2009年
2 黃冕;X處理器存儲(chǔ)一致性模型的研究與實(shí)現(xiàn)[D];國防科學(xué)技術(shù)大學(xué);2008年
3 趙燦明;分片式處理器上激進(jìn)執(zhí)行模型分析[D];中國科學(xué)技術(shù)大學(xué);2009年
4 劉晉汾;處理器描述語言的研究與應(yīng)用[D];解放軍信息工程大學(xué);2011年
5 劉子揚(yáng);基于虛擬計(jì)算群的眾核處理器動(dòng)態(tài)在線任務(wù)調(diào)度算法研究[D];上海交通大學(xué);2013年
6 邸志雄;多核包處理器數(shù)據(jù)控制總線技術(shù)研究[D];西安電子科技大學(xué);2010年
7 方紅霞;基于指令的處理器時(shí)延測(cè)試產(chǎn)生方法[D];中國科學(xué)院研究生院(計(jì)算技術(shù)研究所);2005年
8 黎寶峰;嵌入式DSP處理器的設(shè)計(jì)與驗(yàn)證[D];湖南大學(xué);2003年
9 鐘松延;可配置可擴(kuò)展處理器編譯器設(shè)計(jì)[D];天津大學(xué);2012年
10 董亞卓;循環(huán)陣列處理器體系結(jié)構(gòu)的關(guān)鍵技術(shù)研究與實(shí)現(xiàn)[D];國防科學(xué)技術(shù)大學(xué);2004年
本文編號(hào):1921294
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1921294.html