Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/38222
完整後設資料紀錄
DC 欄位值語言
dc.contributor.advisor陳俊良(Chuen-liang Chen)
dc.contributor.authorChien-Chin Chenen
dc.contributor.author陳建智zh_TW
dc.date.accessioned2021-06-13T16:28:14Z-
dc.date.available2005-07-20
dc.date.copyright2005-07-20
dc.date.issued2005
dc.date.submitted2005-07-13
dc.identifier.citation[1] 'Executable and Linkable Format (ELF),' Tool Interface Srandards(TIS), Portable format specification.
[2] Kernel Korner, 'The ELF Object File Format: Introduction,' Linux Journal, 1995.
[3] Ian Lance Taylor, 'BFD Internals,' Free Software Foundation.
[4] Steve Chamberlain, 'libbfd: the Binary File Descriptor library,' Free Software Foundation.
[5] 'Assembler Internals,' Free Software Foundation.
[6] Dean Elsner and Jay Fenlason, 'Using as : The GNU assembler,' Free Software Foundation.
[7] Per Bothner, Steve Chamberlain, Ian Lance Taylor, and DJ Delorie, 'GNU Linker Internals,' Free Software Foundation.
[8] Steve Chamberlain and Ian Lance Taylor, 'Using ld : The GNU linker,' Free Software Foundation.
[9] John R. Levine, 'Linkers and Loaders,' Morgan Kufmann Publishers, 2000.
[10] CGEN: the Cpu tools Generator. http://sources.redhat.com/cgen/
[11] M. Abbaspour and J. Zhu, 'Retargetable Binary Utilities,' New Oreleans, USA, 2002.
[12] Rajat Moona, 'Processor Models for Retargetable Tools,' Proceedings of Rapid Systems Prototyping 2000 (IEEE), June 21-23.
[13] The Lex & Yacc Page. http://dinosaur.compilertools.net/
dc.identifier.urihttp://tdr.lib.ntu.edu.tw/jspui/handle/123456789/38222-
dc.description.abstract由於嵌入式系統的迅速的發展,目前已經有愈來愈多的高階產品,使用可程式化的 application specific instruction processor (ASIP)來開發,除了效能更高,也能更有彈性地執行應用程式。隨著ASIP的應用,其對應的系統軟體,包括編譯器 、組譯器、連結器和模擬器,更亦顯的重要。
為了提升ASIP設計的效率,並且減少開發上的成本,新的設計方法使用架構描述語言(ADL)來定義處理器的架構,而對應的系統軟體則由電腦輔助設計系統自動產生。然而這部分的研究領域目前大多偏向編譯器方面的研究,至於下游軟體包括組譯器和連結器等,卻鮮少有人觸及。
本篇論文提供一個有效的方法能將這些下游軟體藉由架構描述語言自動移植到新處理器上。我們針對開放源碼的 GNU Binary Utilities (binutils) 來進行移植。基於實務考量,我們採用CGEN作為協助移植的工具,它提供一個實用的架構描述語言來描述指令集,另外我們開發一個工具(ALGEN)來處理剩下的工作,主要是在處理程式重定位的問題。藉由CGEN和ALGEN,我們能以自動化的方式移植GNU binutils到新的處理器上。
為了證實我們方法的可行性,我們分別對FR30和OPENRISC進行移植。結果顯示,我們的方法確實能快速且成功的將GNU binutils移植到目標架構上。
zh_TW
dc.description.abstractWith the rapid development of the embedded system, many new application-specific instruction-set processors (ASIP) are developed in the last few years, which are getting more and more attractive due to their balance between computational efficiency and flexibility. In order to reduce both the design time and the development cost, architecture description languages (ADL) have been established to aid the design of ASIP, which is an active research field to automatic generation of a software toolkit, including C compiler, assembler, linker, and simulator etc. However, most researches in this field focus on automatic generation of compiler, few efforts shed light on the automatic generation of other tools.
In this thesis, we propose a framework that can automatically port GNU binutils package, which contain a suite of downstream software development tools such as assembler, disassebmbler and linker etc. We construct our framework base on CGEN, a developing generator of CPU-related tools. With CGEN's help, we can easily model instruction set architecture of a processor. Besides, we developed a tool, ALGEN, to complete the remaining work, which mainly focus on relocation handling. With ALGEN and CGEN, we can automatically port GNU binuitls to a new architecture.
To verify the feasibility of our framework, we tried to port GNU binutils to FR30 and OPENRISC. The implementation results show that our framework is practical and useful.
en
dc.description.provenanceMade available in DSpace on 2021-06-13T16:28:14Z (GMT). No. of bitstreams: 1
ntu-94-R92922051-1.pdf: 443967 bytes, checksum: 7f152b6fbc7eee35c86e5f9fe751f72e (MD5)
Previous issue date: 2005
en
dc.description.tableofcontents致謝 i
摘要 iii
Abstract v
List of Figures ix
List of Tables xi
Chapter 1 Introduction 1
1.1. Research Motivation 1
1.2. Related Work 2
1.3. Thesis Organization 4
Chapter 2 Executable and Linkable Format 5
2.1. Object File Concept 5
2.2. Object File Format 7
2.2.1. ELF header 8
2.2.2. Sections 9
2.2.3. Relocation 10
Chapter 3 GNU Binary Utilities 13
3.1. Binary File Descriptor Library 13
3.1.1 The BFD view of an object file 14
3.1.2. BFD relocation handling 15
3.1.2.1. BFD relocation concepts 16
3.1.2.2. BFD relocation function 17
3.1.2.3. BFD relocation codes 18
3.1.3. BFD ELF support 18
3.2. Opcodes Library 20
3.3. GNU Assembler 20
3.3.1. Internal of GAS 21
3.3.2. Porting GAS 27
3.4. GNU Linker 31
Chapter 4 Cpu tools Generator 35
4.1. Introduction to CGEN 35
4.2. CPU description language 36
4.3. Support of CGEN 39
4.3.1. Opcode support 39
4.3.2. GAS porting support 40
Chapter 5 Our Strategy 43
5.1. Cross-Compilation 43
5.2. System Design 44
5.3. Overall Process of Retarget 48
Chapter 6 Implementation 51
6.1. ALGEN Description Language 51
6.1.1. Extraction from CGEN 52
6.1.2. Relocation Modeling 56
6.1.3. Miscellaneous 59
6.2. Generation of Binutils Backend files 61
6.2.1. tc-cpu.[ch] 61
6.2.2. elf32-cpu.c, cpu-cpu.h, cpu.h 63
6.2.3. elf32cpu.sh 67
6.3. Modify maker of binutils 68
6.4. Verification 69
Chapter 7 Conclusion 71
Bibliography 72
Appendix A User’s Manual 73
dc.language.isoen
dc.subject嵌入式系統zh_TW
dc.subjectbinutilszh_TW
dc.subject架構描述語言zh_TW
dc.subject移值zh_TW
dc.subjectbinutilsen
dc.subjectembeddeden
dc.subjectportingen
dc.subjectArchitecture description languagesen
dc.titleBinary Utilities 自動移植生成器zh_TW
dc.titleBinary Utilities Generator for Application Specific Instruction Processoren
dc.typeThesis
dc.date.schoolyear93-2
dc.description.degree碩士
dc.contributor.oralexamcommittee王勝德(Sheng-De Wang),吳樂群(Le-Chun Wu)
dc.subject.keyword嵌入式系統,移值,架構描述語言,binutils,zh_TW
dc.subject.keywordembedded,porting,Architecture description languages,binutils,en
dc.relation.page73
dc.rights.note有償授權
dc.date.accepted2005-07-14
dc.contributor.author-college電機資訊學院zh_TW
dc.contributor.author-dept資訊工程學研究所zh_TW
顯示於系所單位:資訊工程學系

文件中的檔案:
檔案 大小格式 
ntu-94-1.pdf
  未授權公開取用
433.56 kBAdobe PDF
顯示文件簡單紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved