Skip to content

Recipes from LLVM Cookbook, simple exercices to understand how a compiler works

Notifications You must be signed in to change notification settings

Aympab/llvm-playground

Repository files navigation

LLVM playground

This repository aims at studying LLVM's framework to get a better understanding of how a compiler works and what are the steps to get executable machine code from a high-level, human-readable language.

The exercices of this repository are the ones from LLVM Cookbook written by Mayur Pandey & Suyog Sarda.

Every recipe is described in the README.md file in each folder.

  1. Trying several simple passes
  2. Lowering C source code to LLVM IR
  3. Lowering IR to LLVM bitcode
  4. Lowering from bitcode to target machine assembly
  5. Converting back bitcode to LLVM assembly code (LLVM IR)
  6. Transforming LLVM IR
  7. Linking LLVM bitcode
  8. Executing LLVM bitcode

Building a toy language (WIP)

About

Recipes from LLVM Cookbook, simple exercices to understand how a compiler works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages