Compiler Options

The following are command line options for monkeyc :

Short OptionLong OptionArgumentDescription
-d--deviceDevice identifierRequired for building a device executable. Specifies the device to target.
-e--package-appNoneSpecifies that output is an IQ file for uploading to the app store.
-f--junglesColon separated list of paths to jungle filesRequired. Each jungle specifies a project to include, which can include one app project and multiple monkey barrel projects.
-g--debugNonePrints the debug output.
-h--helpNonePrints the help information.
-k--profileNoneIncludes 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--typecheck0 = off, 1 = gradual, 2 = informative, 3 = strictSee the Monkey Types section for more information.
-o--outputFile to outputRequired. Specifies the output of the compiler.
-O--optimization0 = None, 1 = Basic,2 = Fast Optimizations, 3 = Slow Optimizations, p = Performance Optimizations, z = Code Space OptimizationsDefault 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--releaseNoneDo not include debug information in PRG.
-t--unit-testNoneInclude unit tests in the build.
-v--versionNonePrints the compiler version.
-w--warnNoneOff by default. Displays build warnings generated by the compiler.
-y--private-keyPath to developer keyRequired. 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 OptionArgumentDescription
--debug-log-level0 = Errors, 1 = Basic Debug, 2 = Intermediate Debug, 3 = Verbose DebugSpecifies the verbosity level for the output.
--debug-log-outputPath to log file to generateSpecifies the path to the log file to create
--debug-log-deviceDevice identifierAllows 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 OptionArgumentDescription
--disable-api-has-check-removalNoneDisables optimizing out API has checks.
--disable-v2-opcodesNoneDisables the generation of V2 opcodes.

Private Options

These options are typically already set and should not be necessary to use:

Short OptionLong OptionArgumentDescription
-a--apidbPath to api.dbSpecifies path to API linking information.
-b--apimirPath to api.mirSpecifies path to API type information.
-i--import-dbgPath to api.debug.xmlPath to the API debug information.
-p--project-infoPath to projectInfo.xmlPath to SDK project definitions.