Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

octalide/mach-boot

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mach-boot

Bootstrap compiler for mach, written in C.

This is the first stage of the mach self-hosting pipeline. It compiles the mach source code into an intermediate compiler, which then compiles itself into the final self-hosted compiler.

Building

Prerequisites: clang (or gcc with C23 support), make.

make

Produces out/bin/cmach.

Installing

make install                       # installs to /usr/local/bin/cmach
make install PREFIX=/opt/mach      # custom prefix

Usage

cmach is not meant to be used directly. It is acquired automatically by the mach build system. To build mach from source:

git clone https://github.com/octalide/mach
cd mach
make

If you have cmach installed or built locally, you can point the mach build at it:

CMACH=/path/to/cmach make

License

MIT

About

Bootstrap compiler for mach (C implementation)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.