Skip to content

Compiler that generates assembly code for the specified abstract machine for programs written in WinZig language

Notifications You must be signed in to change notification settings

kdsuneraavinash/winzig-compiler

Repository files navigation

WinZig Compiler

Compiler that generates assembly code for the specified abstract machine for programs written in WinZig language. Developed for CS4542 - Compiler Design module. Final report is found here.

Abstract Machine Specification

See here for the specification for the assembly code of the abstract machine targeted by this compiler.

Generated assembly code for this assembly machine can be run using this script.

Instructions

From current directory,

# Extract
$ tar xvf 170081L.tar

# Build,
$ make

# Parse only and show AST Tree,
$ java winzigc -ast examples/wizig_01

# Comoile
$ java winzigc examples/wizig_01

About

Compiler that generates assembly code for the specified abstract machine for programs written in WinZig language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published