From 6ddaecafb3763cfc888796c34aa47bd51b8b77bf Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 7 Aug 2024 14:43:47 +0900 Subject: [PATCH] wamrc: Add some help text for --size-level (#3689) --- wamr-compiler/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wamr-compiler/main.c b/wamr-compiler/main.c index 44c8e6bb5..b3e731e53 100644 --- a/wamr-compiler/main.c +++ b/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");