ePrints.FRI - University of Ljubljana, Faculty of Computer and Information Science

C compiler for the HIP processor

Peter Žužek (2013) C compiler for the HIP processor. EngD thesis.

[img]
Preview
PDF
Download (504Kb)

    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.

    Item Type: Thesis (EngD thesis)
    Keywords: compiler, processor, achitecture, stack, HIP, GCC, back end, intermediate code, assembler
    Number of Pages: 55
    Language of Content: Slovenian
    Mentor / Comentors:
    Name and SurnameIDFunction
    prof. dr. Dušan Kodek236Mentor
    Link to COBISS: http://www.cobiss.si/scripts/cobiss?command=search&base=50070&select=(ID=10095700)
    Institution: University of Ljubljana
    Department: Faculty of Computer and Information Science
    Item ID: 2122
    Date Deposited: 03 Sep 2013 16:31
    Last Modified: 13 Sep 2013 13:46
    URI: http://eprints.fri.uni-lj.si/id/eprint/2122

    Actions (login required)

    View Item