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.
- Run on one watch model. Apps compiled by macacac were tested on an Instinct 2S (firmware 13.21): watch faces, watch apps and widgets, including a widget with a glance.
- Other devices are untested. Venu 3 and other targets build, but none has run on hardware. Data fields compile, but none has run on a watch.
- Some output is written by analogy. A few language forms and resource types have no public reference build to compare with. They are marked hypothesis in the code and listed in
docs/format.md.
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:
- there is no public repository, issue tracker, mailing list or chat;
- I do not take patches, feature requests or support questions;
- I make no promise of further releases.
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.
ciq.ksy, a Kaitai Struct description of the PRG format, by Tao Sauvage of Anvil Secure. It was published in April 2023 with the research Compromising Garmin’s Sport Watches: A Deep Dive into GarminOS and its MonkeyC Virtual Machine. The section layout, class definitions, link table and opcode list in macacac come from that file.- Ghidra support for Connect IQ apps, by Luigi Fragale of Anvil Secure, published in February 2026: Reverse Engineering Garmin Watch Applications with Ghidra and GhidraGarminApp.
- Four apps published with their sources and their compiled PRG files: GRun, SimpTemp, SnakeIQ and BBWF. Everything
ciq.ksydoes not describe was observed in those files.
The sources page lists each one, with what was taken from it.
Download
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.