Project

kompiler

0.0
The project is in a healthy, maintained state
Kompiler is a low-level, modular and extendable compiler for any architecture. By default Kompiler supports ARMv8-a, but other architecture extensions can be downloaded in the future.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Kompiler

Kir's compiler for low-level ARM machine code. Kompiler is a modular tool written in Ruby, and can easily be changed to support other architectures!

Contents

  • Description
  • Comparison
  • Install
  • How to use

Description

Kompiler is a tool which can compile a low-level programming language into machine code. Each instructions written in the language will reflect the resulting machine code in a very predictable way.

Comparison

Alongside Kompiler, many low-level compilers exist, such as the GNU Assembly compiler, Clang, NASM, and so on. In comparison to them, Kompiler has a relatively low footprint, and is significantly faster in certain areas: for example, embedding a 6 megabyte image into your machine code takes around 9 seconds with Clang, but just less than a second with Kompiler.

Install

How to use

Compiling

Using Kompiler is simple. To compile a program into machine code (after installation), run

kompile input_file.s output_file.bin

Examples

You can find examples of writing for Kompiler in the examples folder.