Peter Žužek (2013) C compiler for the HIP processor. EngD thesis.
Abstract
The main goal of this thesis was to write a C compiler for the HIP processor. In order to be able to do that, one has to be well acquainted with the compilation process and the target computer architecture. This thesis introduces the basics of compilation. It begin with the description of the GCC compiler, which is the basis for the C compiler for HIP. This is followed by the workspace description - which software tools were used for compilation and testing. Writing a C compiler is not a simple task, therefore some restrictions of what not to expect from this thesis were put into place. The next chapter is an overview of the HIP processor architecture. The rest of the thesis deals with the actual implementation of the compiler. It starts with an overview of how GCC is compiled for some target architecture and how to add a custom target architecture. This is followed by code excerpts from the HIP-specific GCC back end. Code examples are also used to reveal some of the GCC internals. At the end there are examples of the assembly code, generated by the HIP C compiler.
Actions (login required)