天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當前位置:主頁 > 科技論文 > 計算機論文 >

堆棧式計算機目標代碼生成和相關優(yōu)化技術的研究及實現(xiàn)

發(fā)布時間:2018-01-14 04:30

  本文關鍵詞:堆棧式計算機目標代碼生成和相關優(yōu)化技術的研究及實現(xiàn) 出處:《南京航空航天大學》2012年碩士論文 論文類型:學位論文


  更多相關文章: 堆棧處理器 LCC LBURG 匯編代碼生成器 匯編器 代碼優(yōu)化


【摘要】:堆棧處理器由于其快速的中斷處理能力、極強的過程調(diào)用能力、代碼尺寸小等優(yōu)點,一直應用于工業(yè)控制和航空航天領域中。自堆棧處理器誕生以來,ALGOL、FORTH這兩種語言一直作為堆棧處理器的棧操作語言,并且成為區(qū)分第一代和第二代堆棧處理器的一條重要標準。盡管這兩種語言在堆棧處理器領域應用廣泛,但缺乏通用性。C語言是傳統(tǒng)的高級程序設計語言,其底層操作能力和通用性不言而喻。 本文的主要目的就是利用LCC實現(xiàn)一個C語言子集的編譯器,該編譯器能夠?qū)語言源代碼編譯成可以在目標堆棧處理器上直接執(zhí)行的指令。 本文的主要工作有:(1)選擇LCC作為編譯器的前端;(2)重新書寫符合LBURG規(guī)范的堆棧處理器描述文件STACK16,并以此為輸入,利用lburg程序構建了匯編代碼生成器;(3)參照X86匯編文件格式設計符合目標指令集的匯編文件格式;(4)設計并實現(xiàn)一個匯編器;(5)總結現(xiàn)有的棧調(diào)度算法;(6)設計并實現(xiàn)一個匯編指令優(yōu)化器。 通過上述工作,本文成功實現(xiàn)了既定目標,,并利用ModelSim驗證了匯編代碼生成器、匯編器、匯編指令優(yōu)化器的正確性。
[Abstract]:Because of its fast interrupt handling ability , extremely strong process calling ability , small code size and so on , the stack processor has been applied in the field of industrial control and aerospace . Since the birth of stack processor , ALGOL and FORTH have been used as the stack operating languages of stack processors . The main purpose of this paper is to use the LCC to implement a compiler of a C - language subset that can be compiled into instructions that can be executed directly on the target stack processor . The main work of this paper is : ( 1 ) selecting LCC as the front end of compiler ; ( 2 ) re - writing stack processor description file STACK16 conforming to LBURG specification ; ( 3 ) designing and implementing assembler ; ( 4 ) designing and implementing a assembler ; ( 5 ) summarizing the existing stack scheduling algorithm ; and ( 6 ) designing and implementing an assembler instruction optimizer . Through the above work , this paper has achieved the established goal successfully , and verified the correctness of assembly code generator , assembler and assembler instruction optimizer using ModelSim .

【學位授予單位】:南京航空航天大學
【學位級別】:碩士
【學位授予年份】:2012
【分類號】:TP332;TP313

【參考文獻】

相關期刊論文 前1條

1 儲昭賢;施慧彬;;基于FPGA的16位堆棧處理器的設計[J];微電子學與計算機;2012年02期

相關博士學位論文 前1條

1 張惠臻;可重構指令集處理器設計中的軟件重定向關鍵技術研究[D];中國科學技術大學;2010年



本文編號:1422063

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1422063.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權申明:資料由用戶eeefd***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com