macacac

Public domain · Python · published 11 November 2026

A Monkey C compiler written without Garmin's tools.

macacac compiles a subset of the Monkey C language into PRG files that Connect IQ watches run. It is a reference implementation, published so that others can read it, check it and build on it.

source (.mc) + resources → lexer → parser → codegen → PRG assembler → RSA signer → app.prg

Download Read the legal notes first

What it is

macacac is a compiler, written in Python, that turns Monkey C sources and resources into a signed PRG file you can copy onto a Connect IQ watch. Every stage is in the package: lexer, parser, code generator, PRG assembler and RSA signer. It does not use, contain or need Garmin’s SDK.

It covers a subset of the language: classes, modules, enums, the usual statements and expressions, try/catch, strings, bitmaps, layouts, menus, application properties and glances. Custom fonts, JSON resources and .iq store packages are not supported.

A PRG refers to the watch’s API by fixed numeric ids. macacac does not ship that table. You build it on your own computer from four apps whose authors publish both the sources and the compiled PRG files; two scripts in the package do it for you.

Status

This is an early, incomplete piece of work. Read this before you rely on it.

Offered as is, not as a community project

The work is finished enough to be useful to someone else, so it is published. Take it, read it, use it, rewrite it in another language, fold it into your own tools. CC0 means you need no permission and owe no attribution.

It is not an open source project in the social sense, at least not for now:

If you want a maintained project to exist, you are free to start one from this code.

Prior work it builds on

macacac exists because others published their analysis first.

The sources page lists each one, with what was taken from it.

Download

macacac.tar.gz published 11 November 2026 · CC0 1.0

SHA-256

35865cf908fdb9febb151ed60b8bbf86d4e6b20c3e2ba1a0b0ce0ab14b4ac189

The archive holds the compiler, the analysis tools, the tests, the format notes and the CC0 text. It contains no third-party app and no table of symbol ids. There are no version numbers: the archive is identified by its date and its SHA-256.

tar xzf macacac.tar.gz
cd macacac
python3 -m pip install -e .
python3 -m pip install py7zr
make refs

make refs clones the four reference apps from GitHub and builds refs/symbols.db from them. That file is derived from other people’s apps: keep it for your own use and do not redistribute it. README.md in the archive has the rest: usage, the supported language, the tools and how to copy an app onto a watch.

By downloading macacac you accept that it comes with no warranty and that you have read the legal notes.