Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/radian-software/kalyn

⚗️ Self-hosting compiler from a Haskell-like Lisp directly to x86-64, from scratch.
https://github.com/radian-software/kalyn

Last synced: 5 days ago
JSON representation

⚗️ Self-hosting compiler from a Haskell-like Lisp directly to x86-64, from scratch.

Awesome Lists containing this project

README

        

# Kalyn

Self-hosting compiler from a Haskell-like Lisp directly to x86-64,
developed fully from scratch.

Kalyn module
<br />map flow chart

Read all about it [on my
blog](https://intuitiveexplanations.com/tech/kalyn)!

## Build instructions

Install [Stack](https://docs.haskellstack.org/en/stable/README/). Keep
in mind on Arch-based Linux distributions that all the Haskell
packages in the official repos are totally unusable for development,
so you need to install Stack using the upstream binaries. (See [this
HIE
issue](https://github.com/haskell/haskell-ide-engine/issues/1721#issuecomment-609847125).)

To compile the Haskell implementation (provide `VERBOSE=1` to write
intermediate log files into `out-kalyn`):

$ make 1 [VERBOSE=1]

To use the Haskell implementation to compile the Kalyn implementation:

$ make 2

To use the Kalyn implementation to compile itself:

$ make 3