University of Oxford Logo University of OxfordDepartment of Computer Science - Home
Linked in
Linked in
Follow us on twitter
Twitter
On Facebook
Facebook
Instagram
Instagram

Improving Haskell Code Generation

Supervisor

Personal photo - Nicolas Wu
Nicolas Wu

Suitable for

Abstract

The Glasgow Haskell Compiler (GHC) is a widely used, industrial strength compiler for Haskell that is able to produce bytecode that can be compiled by the Low Level Machine (LLVM) compiler infrastructure. This project is an investigation into Haskell's LLVM backend, with the aim of improving the code that is generated.

Currently Haskell directly outputs LLVM instructions which are then parsed by the LLVM tools before compilation. The goal of this project is to replace this mechanism by directly interfacing with the LLVM API, thus reducing the time it takes to compile code, and making the backend more robust to future changes in the LLVM backend.