• Optimal Monkey C

    Over the past two years, the Connect IQ team has been rewriting the Monkey C build tools from scratch to create a more modern, advanced toolchain. The first preview of the tools came in 2020 when we announced Monkey Types. Today, we are providing our first look at the new and improved Monkey C toolchain.

    Here are some of the improvements:

    Optimizing Code Generator

    The compiler now has a new optimization pass. This optimization pass will perform constant folding, constant substitution, branch elimination and a few other optimizations before generating your executable. These optimizations will make your code smaller and more performant without any code changes.

    You can use the -O command line option to set the optimization level. You can set the command line option in the Visual Studio Code plug…

    • Jun 16, 2022
No groups