Research of Methods for Pointer Mapping in C2VHDL Compiling

Author
YangJie
Advisor
GuGuoChang
School
Harbin Engineering University
Major
Applied Computer Technology
Classification
TP312.1 Programming language ALGOL
Degree
Master's thesis
Year
2011
Downloads
3
Citations
0

Request the full text

Abstract

FPGA-CPU heterogeneous cooperative systems based on reconfigurable technology has a better speed-up ratio in the field of High Performance Computing. The reconfigurable technology of transferring computation-intense C code to VHDL code oriented FPGA is gradually becoming an important trend. How Pointers in C are transferred to VHDL will affect the performance of compiler and scope of application.Nowadays, research ahievements have been acquired in the C2VHDL compiling at home and abroad. But the relevant theoretical works on pointers’C2VHDL transfer are lack. The function of C2VHDL compiling of variable pointers and array pointers based on ASCRA reconfigurable compiler is designed and realized in this thesis. According to the principle of symbols analysis in compiling pointers, a direct hardware mapping method is proposed in the thesis. Flow-Sensitive Context-Sensitive pointer analysis based on Control Data Flow Graph is used, point-to targets of pointers are encoded and an abstract symbol table is constructed in order to reduce unreachable circuit generation. Then, a way of a memory accessing is used, control rights are transferred, pointer memory access channels are constructed and pointer control signals are generated. The memory access times can be reduced and the efficiency also can be improved in a certain degree by the way of a memory accessing. Finally, the layout of storage space is constructed, an address generator is designed. The experiment results show that variable pointers and array pointers can be transferred to VHDL successfully through the direct hardware mapping method and has a better feasibility and expandability. Contrasted with other compilers supporting array pointers, the same hardware effect in hardware resource and running speed can be achieved in this thesis.

Table of contents

Summary 5-6 Abstract 6-9 Chapter 1 Introduction the study 9-15 1.1 purpose and significance < br /> 1.2 research status 9-14 the 1.2.1 The pointer C2VHDL compile 9-11 1.2.2 pointer hardware mapping technology -14 1.3 of this topic 14 1.4 paper is organized 14-15 Chapter 2 Introduction of background knowledge 15-25 2.1 FPGA reconfigurable hybrid computing systems 15-16 2.2 the LLVM architecture analysis the 16-19 2.2.1 LLVM intermediate code 16-17 2.2.2 LLVM toolset 17-18 2.2.3 LLVM compiler processes 18-19 2.3 based the LLVM's ASCRA compiler Profile 19-21 the 2.4 pointers to access data compiler theory 21-24 2.5 Chapter Summary 24-25 Chapter 3 the CDFG-FSCS pointer Analysis algorithm 25-41 3.1 the typical pointer analysis algorithm 25-27 3.2 FSCS pointer analysis principle 27-29 3.3 oriented hardware pointer analysis precision requirements 29-31 3.4 CDFG-FSCS pointer analysis algorithm 31-40 3.4.1 the CDFG The-based flow-sensitive pointer analysis 33 -38 3.4.2 based on the CDFG the context-sensitive pointer analysis 38-40 3.5 Chapter Summary 40-41 Chapter 4 pointer the hardware automatically mapped design 41-57 4.1 hardware mapping model structure the 41-42 4.2 pointer control unit mapping 42-49 4.2.1 abstract symbol table structure 43-45 4.2.2 pointer target coding to fetch 45-47 4.2.3 path automatically mapped 47-49 4.3 Address Generation device structure 49-56 4.3.1 pointer memory access address 49-51 4.3.2 address generator design 51-53 < br /> 4.3.3 address generator realization the 53-56 4.4 storage structure Organization 56 4.5 Chapter Summary 56-57 first Chapter 5 Experimental results and analysis 57-67 the 5.1 pointers hardware mapping example analysis 57-60 the 5.2 pointers hardware mapping correctness verification 60-63 the 5.3 pointers hardware mapping performance analysis 63-66 5.4 Chapter Summary 66-67 conclusion to References 67-69 nbsp ; 69-73 studying papers and obtained a master's degree during the research results 73-75 Acknowledgements 75-77 Appendix A 77 -79

Related dissertations

  1. Pointer Analysis Based Lock Set Analysis Tool
    ZhangDi ·Shanghai Jiaotong University ·2013 ·Master's thesis
  2. Java Code Vulnuerabilities Detection Analysis and Application
  3. Research and Application of Combinatorial Testing
    CuiYingXia ·Anhui University ·2011 ·Doctoral dissertation
  4. Statically Checking the Validity of Pointer Status in C/C++ Program
  5. Study on Pointer Analysis Technology in Static Buffer Overflow Analysis
  6. Research on Automatic Testing System of SDH Optical Communication Based on PCI Express
  7. Study on Static Detection of Null Pointer Dereference
  8. Research on Momery Model for Symbolic Execution
  9. Fine-grained reconfigurable system for heterogeneous circulating water compiler technology research
    YangMin ·Harbin Engineering University ·2011 ·Master's thesis