wasm_proposal.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. void
  7. wasm_proposal_print_status(void)
  8. {
  9. printf("About Wasm Proposals:\n");
  10. printf(" Always-on:\n");
  11. printf(" - Extended Constant Expressions\n");
  12. printf(" - Multi-value\n");
  13. printf(" - Non-trapping float-to-int conversions\n");
  14. printf(" - Sign-extension operators\n");
  15. printf(" - WebAssembly C and C++ API\n");
  16. printf(" Compilation Configurable. 0 is OFF. 1 is ON:\n");
  17. printf(" - Bulk Memory Operation via WASM_ENABLE_BULK_MEMORY: %u\n",
  18. WASM_ENABLE_BULK_MEMORY);
  19. printf(" - Fixed-Width SIMD via WASM_ENABLE_SIMD: %u\n",
  20. WASM_ENABLE_SIMD);
  21. printf(" - Garbage Collection via WASM_ENABLE_GC: %u\n", WASM_ENABLE_GC);
  22. printf(
  23. " - Legacy Exception Handling via WASM_ENABLE_EXCE_HANDLING: %u\n",
  24. WASM_ENABLE_EXCE_HANDLING);
  25. printf(" - Memory64 via WASM_ENABLE_MEMORY64: %u\n",
  26. WASM_ENABLE_MEMORY64);
  27. printf(" - Multiple Memory via WASM_ENABLE_MULTI_MEMORY: %u\n",
  28. WASM_ENABLE_MULTI_MEMORY);
  29. printf(" - Reference Types via WASM_ENABLE_REF_TYPES: %u\n",
  30. WASM_ENABLE_REF_TYPES);
  31. printf(" - Reference-Typed Strings via WASM_ENABLE_REF_TYPES: %u\n",
  32. WASM_ENABLE_REF_TYPES);
  33. printf(" - Tail Call via WASM_ENABLE_TAIL_CALL: %u\n",
  34. WASM_ENABLE_TAIL_CALL);
  35. printf(" - Threads via WASM_ENABLE_SHARED_MEMORY: %u\n",
  36. WASM_ENABLE_SHARED_MEMORY);
  37. printf(" - Typed Function References via WASM_ENABLE_GC: %u\n",
  38. WASM_ENABLE_GC);
  39. printf(" Unsupported (>= Phase4):\n");
  40. printf(" - Branch Hinting\n");
  41. printf(" - Custom Annotation Syntax in the Text Format\n");
  42. printf(" - Exception handling\n");
  43. printf(" - Import/Export of Mutable Globals\n");
  44. printf(" - JS String Builtins\n");
  45. printf(" - Relaxed SIMD\n");
  46. }