/glove_example

A simple example of how to use glove to produce QBE IR code

Primary LanguageGleamMIT LicenseMIT

glove_example

A Small example of Using Glove - QBE IR for gleam

Quick start

Clone the repo and run:

gleam run   # Run the project
  • Copy the code and paste it into a new file (let's say: file.ssa)
  • Compile the file using qbe(you must have qbe installed): qbe -o out.s file.ssa && cc out.s
  • Run: ./a.out
  • You must see: Hello world in your terminal.