匯編器在微處理器的驗證和應用中舉足輕重,如何設計通用的匯編器一直是研究的熱點之一。本文提出了一種開放式的匯編器系統設計思想,在匯編語言與機器語言間插入中間代碼CMDL(code mapping description language)語言,打破匯編語言與機器語言的直接映射關系,由此建立起一套描述匯編語言與機器語言的開放式映射體系。基于此開放式映射體系開發了一套匯編器系統,具有較高層次上的通用性和可移植性。【關鍵詞】指令集,CMDL,匯編器,開放式
Design of Retargetable Assembler System Liu Ling Feng Wen Nan Wang Ying Chun Jiang An Ping Ji Li Jiu IME of Peking University, 100871【摘要】An assembler plays a very important role in the field of microprocessor verifications and applications, thus how to build a retargetable assembler system has been a hotspot in this field for long time. This paper presents a new method about the retargetable assembler system design.It provides a kind of language CMDL, code mapping description language. During the process of assembling, assembler languages are firstly translated to CMDL, and then mapped to the machine codes. In an other word, CMDL is inserted between assembler languages and machine codes during the translation procedure. As a medium code, CMDL has a lot of features, such as high extraction, strong descript capabilities. It can describe almost all attributes of assembler languages. By breaking the direct mapping relationship between assembler languages and machine codes, the complexities of machine codes are hided to the users, therefore, the new retargetable assembler system has higher retargetable level by converting the mapping from assembler languages and machine codes to assembler languages and CMDL, and implementationof it becomes easier. Based on the new mapping system structure, a retargetable assemblersystem is developed. It proved the whole system has good retargetability and implantability.【關鍵詞】instruction set, symbol table, assembler, lexical analysis, retargetability
標簽:
開放式
匯編器
上傳時間:
2013-10-10
上傳用戶:meiguiweishi
用匿名方式登陸一個FTP服務器,下載FTP服務器里的文件到本地。在FTP服務器里應該有一個list.ini文件,里面記錄一些相關的信息(版本號,需要下載的文件等)。
程序第一次執行,如果本地沒有list.ini文件,則先下載服務器的list.ini文件到本地,然后從本地的list文件中拿到需要升級的文件清單,下載服務器里的相應文件.最后結束自己。以后運行程序,先讀取本地文件中的list文件的版本號,再下載服務器的list.ini文件到本地。然后比較版本號,如果有新版本,就從list文件中拿到需要升級的文件清單,下載服務器里的相應文件,最后結束自己。
apple3.exe 是被升級的主程序例子,在程序代碼中可選擇是否對被升級的主程序進行啟動和關閉。
代碼中有較詳細的中文說明, FTP和讀INI文件的類都是用的別人做好的。
標簽:
FTP
list
服務器
ini
上傳時間:
2014-01-07
上傳用戶:wangyi39