wasm-micro-runtime/product-mini/platforms
Gavin Hayes d8ee771e28
Add Cosmopolitan Libc Platform (#2598)
This PR adds the Cosmopolitan Libc platform enabling compatibility with multiple
x86_64 operating systems with the same binary. The platform is similar to the
Linux platform, but for now only x86_64 with interpreter modes are supported.

The only major change to the core is `posix.c/convert_errno()` was rewritten to use
a switch statement. With Cosmopolitan errno values depend on the currently
running operating system, and so they are non-constant and cannot be used in array
designators. However, the `cosmocc` compiler allows non-constant case labels in
switch statements, enabling the new version.

And updated wamr-test-suites script to add `-j <platform>` option. The spec tests
can be ran via `CC=cosmocc ./test_wamr.sh -j cosmopolitan -t classic-interp`
or `CC=cosmocc ./test_wamr.sh -j cosmopolitan -t fast-interp`.
2023-10-04 21:55:37 +08:00
..
alios-things Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
android Fix several issues in CI binary releasing (#2064) 2023-03-26 12:19:45 +08:00
cosmopolitan Add Cosmopolitan Libc Platform (#2598) 2023-10-04 21:55:37 +08:00
darwin Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
esp-idf ESP-IDF platform supports to load AOT to PSRAM and run it (#2385) 2023-07-27 10:17:21 +08:00
freebsd Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
ios Fix build error with LLVM 16 (#2259) 2023-06-06 13:45:18 +08:00
linux product-mini/platforms/linux: Mark vmlib POSITION_INDEPENDENT_CODE (#2323) 2023-06-29 14:57:27 +08:00
linux-sgx Upgrade SGX-RA integration for 0.1.2 and Ubuntu 20.04 (#2454) 2023-08-15 10:12:43 +08:00
nuttx Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
posix Improve stack trace dump and fix coding guideline CI (#2599) 2023-09-29 10:52:54 +08:00
riot Normalize how the global heap pool is configured across iwasm apps (#1628) 2022-10-25 21:36:24 +08:00
rt-thread Fix compiling error for RT-Thread (#2569) 2023-09-21 13:33:03 +08:00
vxworks Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
windows Improve stack trace dump and fix coding guideline CI (#2599) 2023-09-29 10:52:54 +08:00
zephyr/simple Fix typo in zephyr's Dockerfile.old (#2354) 2023-07-11 14:41:12 +08:00