wasm_proposal.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2023 Amazon.com Inc. or its affiliates. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #include <stdio.h>
  6. #include "bh_platform.h"
  7. void
  8. wasm_proposal_print_status(void)
  9. {
  10. printf("About Wasm Proposals:\n");
  11. printf(" Always-on:\n");
  12. printf(" - Import/Export of Mutable Globals\n");
  13. printf(" - Multi-value\n");
  14. printf(" - Non-trapping float-to-int Conversions\n");
  15. printf(" - Sign-extension Operators\n");
  16. printf(" - WebAssembly C and C++ API\n");
  17. printf(" Compilation Configurable. 0 is OFF. 1 is ON:\n");
  18. printf(" - Bulk Memory Operation via WASM_ENABLE_BULK_MEMORY: %u\n",
  19. WASM_ENABLE_BULK_MEMORY);
  20. printf(" - Fixed-width SIMD via WASM_ENABLE_SIMD: %u\n",
  21. WASM_ENABLE_SIMD);
  22. printf(" - Garbage Collection via WASM_ENABLE_GC: %u\n", WASM_ENABLE_GC);
  23. printf(
  24. " - Legacy Exception Handling via WASM_ENABLE_EXCE_HANDLING: %u\n",
  25. WASM_ENABLE_EXCE_HANDLING);
  26. printf(" - Memory64 via WASM_ENABLE_MEMORY64: %u\n",
  27. WASM_ENABLE_MEMORY64);
  28. printf(" - Multiple Memories via WASM_ENABLE_MULTI_MEMORY: %u\n",
  29. WASM_ENABLE_MULTI_MEMORY);
  30. printf(" - Reference Types via WASM_ENABLE_REF_TYPES: %u\n",
  31. WASM_ENABLE_REF_TYPES);
  32. printf(" - Reference-Typed Strings via WASM_ENABLE_REF_TYPES: %u\n",
  33. WASM_ENABLE_REF_TYPES);
  34. printf(" - Tail Call via WASM_ENABLE_TAIL_CALL: %u\n",
  35. WASM_ENABLE_TAIL_CALL);
  36. printf(" - Threads via WASM_ENABLE_SHARED_MEMORY: %u\n",
  37. WASM_ENABLE_SHARED_MEMORY);
  38. printf(" - Typed Function References via WASM_ENABLE_GC: %u\n",
  39. WASM_ENABLE_GC);
  40. printf(" Unsupported (>= Phase4):\n");
  41. printf(" - Branch Hinting\n");
  42. printf(" - Custom Annotation Syntax in the Text Format\n");
  43. printf(" - Exception Handling\n");
  44. printf(" - JS String Builtins\n");
  45. printf(" - Relaxed SIMD\n");
  46. }