Native Image Hosted and Runtime Options

Along with all the options listed in the Options guide, Native Image also distinguishes hosted and runtime options.

For developer documentation on how to define and use options, read the documentation of the com.oracle.svm.core.option package.

List of Useful Options

Graph Dumping

Native Image re-used the GraalVM options for graph dumping, logging, counters, and everything else in the GraalVM debug environment. These GraalVM options can be used both as hosted options (if you want to dump graphs of the native image builder), and as runtime options (if you want to dump graphs during dynamic compilation at runtime).

The Graal compiler options that work as expected include Dump, DumpOnError, Log, MethodFilter, and the options to specify file names and ports for the dump handlers.

For example:

Debug Options

These options enable additional checks in the generated executable to help with debugging:

Control the Main Entry Points