Compiler Options
The following are command line options for monkeyc :
| Short Option | Long Option | Argument | Description |
|---|---|---|---|
-d | --device | Device identifier | Required for building a device executable. Specifies the device to target. |
-e | --package-app | None | Specifies that output is an IQ file for uploading to the app store. |
-f | --jungles | Colon separated list of paths to jungle files | Required. Each jungle specifies a project to include, which can include one app project and multiple monkey barrel projects. |
-g | --debug | None | Prints the debug output. |
-h | --help | None | Prints the help information. |
-k | --profile | None | Includes profiler information in the executable. When an executable with profiler information runs on device, the device will generate profiler information that can be analyzed in the simulator. |
-l | --typecheck | 0 = off, 1 = gradual, 2 = informative, 3 = strict | See the Monkey Types section for more information. |
-o | --output | File to output | Required. Specifies the output of the compiler. |
-O | --optimization | 0 = None, 1 = Basic,2 = Fast Optimizations, 3 = Slow Optimizations, p = Performance Optimizations, z = Code Space Optimizations | Default is 1 for building in debug, and 2 for building in release. The numeric level can be suffixed with the letters, so -O 2pz is an allowed argument. |
-r | --release | None | Do not include debug information in PRG. |
-t | --unit-test | None | Include unit tests in the build. |
-v | --version | None | Prints the compiler version. |
-w | --warn | None | Off by default. Displays build warnings generated by the compiler. |
-y | --private-key | Path to developer key | Required. Specifies the developer key to use for signing the PRG or IQ file. |
Debug Logging
If you encounter a bug with the monkeyc compiler you will need to generate logs to provide with your report. Here are the options to create debug logs:
| Long Option | Argument | Description |
|---|---|---|
--debug-log-level | 0 = Errors, 1 = Basic Debug, 2 = Intermediate Debug, 3 = Verbose Debug | Specifies the verbosity level for the output. |
--debug-log-output | Path to log file to generate | Specifies the path to the log file to create |
--debug-log-device | Device identifier | Allows limiting logs to a specific device when building a Monkey Barrel. |
Be aware that the log levels include increasingly more information about your source project. If you want to keep your project information private, limit the logging level to 1 or less. More verbosity will make it easier for Garmin to debug any issues.
Feature Control Options
These options are used for controlling different features:
| Long Option | Argument | Description |
|---|---|---|
--disable-api-has-check-removal | None | Disables optimizing out API has checks. |
--disable-v2-opcodes | None | Disables the generation of V2 opcodes. |
Private Options
These options are typically already set and should not be necessary to use:
| Short Option | Long Option | Argument | Description |
|---|---|---|---|
-a | --apidb | Path to api.db | Specifies path to API linking information. |
-b | --apimir | Path to api.mir | Specifies path to API type information. |
-i | --import-dbg | Path to api.debug.xml | Path to the API debug information. |
-p | --project-info | Path to projectInfo.xml | Path to SDK project definitions. |