From bbc4a750ca2e6a16aecd6c348c5744628e661b18 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Mon, 11 Jul 2022 00:32:22 +0700 Subject: [PATCH] docs/tools/ikvm.md: Grouped options in a similar way as the java.exe documentation. --- docs/tools/ikvm.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/docs/tools/ikvm.md b/docs/tools/ikvm.md index 0928b65f4b..24aa7df1c7 100644 --- a/docs/tools/ikvm.md +++ b/docs/tools/ikvm.md @@ -28,16 +28,28 @@ Command-line arguments passed to the main class. ## Options -| Source | Description | +### Standard Options + +|                           Source                           |                                                              Description                                                               | |---|---| | `-?\|-help` | Displays command syntax and options for the tool. | | `-version` | Displays IKVM and runtime version. | | `-showversion` | Display version and continue running. | | `-cp\|-classpath` | <directories and zip/jar files separated by ;> Set search path for application classes and resources. | +| `-jar` | Run a jar file. | +| `-D=` | Set a Java system property. | +| `-ea\|-enableassertions[:[\|]]` | Set Java system property to enable assertions. A class name or package name can be specified to enable assertions for a specific class or package. | +| `-da\|-disableassertions[:[\|]]` | Set Java system property to disable assertions. A class name or package name can be specified to disable assertions for a specific class or package. | +| `-esa\|-enablesystemassertions` | Set Java system property to enable system assertions. | +| `-dsa\|-disablesystemassertions` | Set Java system property to disable system assertions. | | `-D=` | Set a Java system property. | -| `-ea\|-enableassertions[: [...] \|:]` | Set Java system property to enable assertions. | -| `-da\|-disableassertions[: [...] \|:]` | Set Java system property to disable assertions. | -| `-Xsave` | Save the generated assembly (for debugging). | + +### Extra Options + +|                           Source                           |                                                              Description                                                               | +|---|---| +| `-X` | Displays command syntax and options for the `-X` command options. | +| `-Xsave\|-XXsave` | Save the generated assembly (for debugging). | | `-Xtime` | Time the execution. | | `-Xtrace:` | Displays all trace points with the given name. | | `-Xmethodtrace:` | Builds method trace into the specified output methods. | @@ -47,11 +59,17 @@ Command-line arguments passed to the main class. | `-Xnoglobbing` | Disable argument globbing. | | `-Xverify` | Enable strict class file verification. | | `-Xreference:/.dll` | Add a assembly (dll or exe) as reference to the classpath. This equals the C# code `Startup.addBootClassPathAssemby(Assembly.LoadFrom(name));`. | -| `-jar` | Run a jar file. | | `-Xdebug` | Enable debugging. | -| `-Xnoagent` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. | | `-XX:+AllowNonVirtualCalls` | Allow non-virtual calls. | + +### Java Compatibility Options + +The Java HotSpot Virtual Machine is not supported by the `ikvm` tool. But several of the parameters will print warning messages if they are provided and do not halt execution of `ikvm`. + +|                           Source                           |                                                              Description                                                               | +|---|---| | `-XX:` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. | +| `-Xnoagent` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. | | `-Xms` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. | | `-Xmx` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. | | `-Xss` | For compatibility with java.exe. This option will be ignored and a warning will be print to the console. |