Browse Source

wamrc: Add some help text for --size-level (#3689)

YAMAMOTO Takashi 1 year ago
parent
commit
6ddaecafb3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      wamr-compiler/main.c

+ 4 - 0
wamr-compiler/main.c

@@ -128,6 +128,10 @@ print_help()
     printf("                            Use --cpu-features=+help to list all the features supported\n");
     printf("  --opt-level=n             Set the optimization level (0 to 3, default is 3)\n");
     printf("  --size-level=n            Set the code size level (0 to 3, default is 3)\n");
+    printf("                              0 - Large code model\n");
+    printf("                              1 - Medium code model\n");
+    printf("                              2 - Kernel code model\n");
+    printf("                              3 - Small code model\n");
     printf("  -sgx                      Generate code for SGX platform (Intel Software Guard Extensions)\n");
     printf("  --bounds-checks=1/0       Enable or disable the bounds checks for memory access:\n");
     printf("                              by default it is disabled in all 64-bit platforms except SGX and\n");