This is the main repository for Colgm compiler.
-
colgm bootstrap -> bootstrap
-
colgm self-hosted -> src
Use these commands to build the bootstrap compiler:
mkdir build
cd build
cmake ../bootstrap
make -jThe executable is located as build/colgm.
In directory bootstrap, use this command:
make out.llThe generated llvm ir will be generated with filename out.ll.
Hello world example is available in bootstrap:
func puts(v: i8*) -> i32;
func main() -> i64 {
puts("hello world!");
return 0;
}