Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 812 Bytes

README.md

File metadata and controls

18 lines (17 loc) · 812 Bytes

Hermes to C compiler written in Moscow ML as part of my bachelor project. Hermes is designed by Torben Ægidius Mogensen and specified in Hermes: A Reversible Language for Writing Encryption Algorithms.

Instructions

Clone the repository and build the compiler:

git clone [email protected]:maltevelin/Hermes.git
cd Hermes
make

Clone and compile Blowfish:

git clone [email protected]:maltevelin/Blowfish.git
bin/hc -O Blowfish/blowfish

The resulting C file, located in the programs directory, can be compiled using any old C compiler and executed backwards with the -r option. -O and -Z flags enable optimizations and add annotations to C code for compilation with Zerostack, respectively.