wamrc: Add an incompatibility note in the help message (#2276)

An example of such optimizations:
https://github.com/bytecodealliance/wasm-micro-runtime/pull/1752
This commit is contained in:
YAMAMOTO Takashi 2023-06-09 09:12:34 +09:00 committed by GitHub
parent 674f229eff
commit ce6d1fd8fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,9 @@ print_help()
printf(" by default it is disabled in all 64-bit platforms except SGX and\n"); printf(" by default it is disabled in all 64-bit platforms except SGX and\n");
printf(" in these platforms runtime does bounds checks with hardware trap,\n"); printf(" in these platforms runtime does bounds checks with hardware trap,\n");
printf(" and by default it is enabled in all 32-bit platforms\n"); printf(" and by default it is enabled in all 32-bit platforms\n");
printf(" CAVEAT: --bounds-checks=0 enables some optimizations\n");
printf(" which make the compiled AOT module incompatible\n");
printf(" with a runtime without the hardware bounds checks.\n");
printf(" --stack-bounds-checks=1/0 Enable or disable the bounds checks for native stack:\n"); printf(" --stack-bounds-checks=1/0 Enable or disable the bounds checks for native stack:\n");
printf(" if the option isn't set, the status is same as `--bounds-check`,\n"); printf(" if the option isn't set, the status is same as `--bounds-check`,\n");
printf(" if the option is set:\n"); printf(" if the option is set:\n");