Research and Development of Assembler and Linker Based on GNU Binutils
- Author
- ZhangJunChao
- Advisor
- XiaHong
- School
- North China Electric Power University (Beijing)
- Major
- Applied Computer Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 137
- Citations
- 2
Abstract
Design new microprocessor must want to supporting the development of the compiler tool chain , assembler and linker is an important part of the compiler tool chain . The task of this project is to design and development for the LX - 1164 microprocessor assembler and linker . Through the analysis , the author identified the development of transplant program , namely through the transplant GNU Binutils the assembler GAS and the connector GLD , to support the LX - 1164 microprocessor . This paper first introduces the features of the LX - 1164 microprocessor , the ELF object file format , analysis the BFD libraries principle and symbol processing . Then, the analysis the assembler GAS and connectors GLD important data structure and operation mechanism . Finally, the combination of the characteristics of the LX - 1164 microprocessor , a detailed description of the the BFD libraries , assembler , GAS and connector GLD transplant step .
Table of contents
Chinese Abstract 3
Abstract 3-6
The first chapter 6-9
1.1 project background 6
1.2 The main research topics and significance 6-8
1.3 Structure of this thesis 8-9
Chapter LX-1164 microprocessor 9-14
2.1 LX-1164 architecture, the basic characteristics of 9-10
2.2 LX-1164 registers 10
2.3 LX-1164 instruction set 10-14
Chapter binary object file format BFD library analysis 14-29
3.1 ELF file format 14-19
3.1.1 ELF structural layout 14-15
3.1.2 ELF header structure 15-17
3.1.3 ELF sections and section header 17-18
3.1.4 ELF program header section and 18-19
3.2 BFD library analysis 19-29
3.2.1 BFD front 20-21
3.2.2 BFD backend 21-24
3.2.3 BFD of symbolic processing 24-29
3.2.3.1 symbol format 24-25
3.2.3.2 read symbolic 25-27
3.2.3.3 generate symbols 27
3.2.3.4 write symbols 27-29
Chapter assembler connector analysis 29-37
4.1 assembler GAS analytical 29-33
4.1.1 GAS assembler working process 29
4.1.2 GAS assembler important data structure 29-33
4.2 connector GLD analysis 33-37
4.2.1 connector GLD working process 34-35
4.2.2 connector GLD important data structure 35
4.2.3 script files and the linker script and emulation 35-37
4.2.3.1 script file 35-36
4.2.3.2 linker script 36
4.2.3.3 emulation 36-37
Chapter assembler connector transplant 37-51
5.1 BFD library transplant 37-42
5.1.1 amend the relevant header files and source files 37-38
5.1.2 source files associated with increased 38-42
5.1.3 amend the relevant configuration file 42
5.2 assembler GAS transplant 42-48
5.2.1 increase related header files and source files 42-47
5.2.2 amend the relevant configuration file 47-48
5.3 connector GLD transplant 48-51
5.3.1 script file associated with an increased 48-49
5.3.2 amend the relevant configuration file 49-51
Chapter VI operating results analysis 51-59
6.1 assembler source design 51-53
6.2 compilation result analysis 53-56
6.3 Connection Analysis 56-59
Chapter VII Conclusion 59-60
References 60-62
Thanks 62-63
papers published during the study period and participation in scientific research situation 63
Related dissertations
- Research and Implementation of Cross-compiler System
- The Design and Implement of LX-1164 CPU Linker
- A Port of GNU Toolchain to Build Cross-compiling Environment of Embeded ARM-MINIX
- Research and Implementation of Ethernet Link Failure Detection
- Design and Implementation of BFD Protocol Software in a Centralized Routing Architecture
- Analysis of flower and bird painting style
- Thinking of Visual Arts in Gas
- 1.The Effects of Enteral Nutrition by Different Pathway on Gastrointestinal Hormones and Gastrointestinal Mucosa in Rats2.the Exploratory Use of NNS-2002and MNA to Screen the Nutrition-risk in Elderly Patients in General Surgery Department
- The Value of Gas Partial Pressure Evaluation in Pleural Space to Treatment of Pneumothorax Patients
- Expression of SOCS-1Proteins through the TLR4/MyD88Direct Signaling Pathway in Group A Streptococcus Infected Macrophages
- Research on Gas Emossion Law of Main Working Face in Closed Distance Seam Group and It's Application in Shaqu Coal Mine
- Determination of the Basic Parameters of Coal Seam Gas and Protective Layer Mining Gas Emission Law in Hongyang NO.2Mine
- Numerical Simulation of Pre-splitting Blasting Crack Propagation Law in Low Permeability Coal Seams
- Research of EFPI Optical Gas Sensing System Based on FPGA
- The Scheme Optimization Research of Bedding Gas Extraction in Zhu Xianzhuang Coal Mining Working Face
- Research on Anthracite Desorption Character and Applycation in Prevention and Treatment Gas Outburst in Mine
- Research of the Gas Monitoring System for the Coal Mine Based on Zigbee and LabVIEW
- Design of Coal Mine Safety Monitoring System Based on Internet of Things
- Study on Xuandong Second Mine Stope Ground Pressure Features and Working Face Gas Emission Law
- The Reservation Analysis of Neopaleozoic Shanxi Formation and Lower Shihezi Formation on Yan x Well