you could do the same trick I did to make Nim work on Game Boy: 1. fiddle around with nim.cfg 2. create a custom nimbase.h 3. create a wrapper which translates nim C compiler invocations into ones compatible with your target compiler https://github.com/zoomten/jibby https://github.com/zoomten/pocket-clicker