Volodymyr Shymanskyy
50f74d7699
Fix build
2 years ago
Volodymyr Shymanskyy
9a2894387d
Detect musttail attribute
2 years ago
Volodymyr Shymanskyy
03a4652520
Use musttail attribute for Clang 13+
2 years ago
Volodymyr Shymanskyy
d97045a804
Increase d_m3MaxFunctionStackHeight on some platforms
2 years ago
Felipe Gasper
8523770b80
Fix Cygwin compatibility ( #330 )
...
* Make simple WASI work in Cygwin.
Issue #329
* Prevent M3_WEAK from taking effect on Cygwin.
Issue #329
* Add CI to ensure that Cygwin doesn’t regress.
Issue #329
2 years ago
Vova
81bd990fb8
Fix AVR build
3 years ago
Vova
7552220247
OPTZ: Preallocate functions, increase code page size
3 years ago
Vova
c20749bce3
Cleanup
3 years ago
Vova
92123f3778
Update Android platform
3 years ago
Vova
c9ed900a15
Workaround for Cosmopolitan noinline conflict
3 years ago
Vova
d4b94f1d98
Cleanup
3 years ago
Vova
c8337c44f8
Align opcodes
3 years ago
Vova
b20f538e29
Cleanup
3 years ago
Vova
420e884e26
Fix #232
3 years ago
Vova
9fa673ccd1
Cleanup
3 years ago
Vova
6bd90d9b56
Deprecate m3_api_defs.h
3 years ago
Steven Massey
6a18412608
added memory.fill and memory.copy operations
3 years ago
Volodymyr Shymanskyy
8ecc645d50
New m3_Call* API. Remove d_m3LogOutput, USE_HUMAN_FRIENDLY_ARGS.
...
#41 . Fix #128
3 years ago
Volodymyr Shymanskyy
f6696247b7
Add docs on how to build using a compiler directly
3 years ago
Volodymyr Shymanskyy
83f5e28ee2
Update to 0.4.8
4 years ago
Volodymyr Shymanskyy
824ce5d9e1
Fix #184
4 years ago
Volodymyr Shymanskyy
eb57b07adf
Support MinGW. Fix #146
4 years ago
Volodymyr Shymanskyy
5aba4e43bd
Fix compiler detection
4 years ago
Volodymyr Shymanskyy
39f119e280
Auto-detect bswap operations
4 years ago
Volodymyr Shymanskyy
640bf0cc26
Cleanup
4 years ago
Volodymyr Shymanskyy
fe1fb1e2f1
Unify arch names
4 years ago
Volodymyr Shymanskyy
c1701dd056
Initial Big-Endian system support ( #125 )
4 years ago
Volodymyr Shymanskyy
ce17cd45b8
Detect more platforms
4 years ago
Volodymyr Shymanskyy
2e92a9ed12
Detect more platforms
4 years ago
Volodymyr Shymanskyy
6270f6f283
Blacklist some tests for Win32 x86 builds
4 years ago
Steven Massey
031c21f496
Fixed maxStackSlots. MoveStackTopToRegister bug fix.
4 years ago
Ivan Grokhotkov
b41684065c
prefix min and max macros with M3_ to avoid conflicts with the STL ( #93 )
...
This reverts the change introduced in b087435
, that made min/max
definitions conditional on !__cplusplus. Since some use cases of wasm3
require its C source files to be compiled with a C++ compiler, that
change resulted in min/max being undefined for WASMM3 source files.
This commit makes min/max macros scoped with m3_ prefix, which
resolves the conflict with min/max member functions defined in the STL
and elsewhere.
Closes #92
4 years ago
Ivan Grokhotkov
b0874355d7
add C++ wrappers, simplify linking external functions ( #71 )
...
* add a set of C++ wrappers, simplify linking external functions
* m3_config_platforms.h: don't define min/max for C++
4 years ago
Volodymyr Shymanskyy
281e7c783e
Update platforms
4 years ago
Ivan Grokhotkov
804d14991b
Make the source directory useable as a CMake library, plus ESP32 related cleanup ( #30 )
...
* m3_config_platforms: esp32: make the dependency on esp_system optional
If the application places wasm3 into IRAM using the linker script,
it can define M3_IN_IRAM flag. In this case we don't need to pull in
the dependency on IDF-specific header file into m3.
* cmake: make the source directory useable as a CMake library
Also replace globbing with an explicit list of files, following CMake
best practices.
* platforms/esp32-idf: link m3 as a static library
* platforms/esp32-pio: wrap the wasm3 code into a "PIO library"
5 years ago
Volodymyr Shymanskyy
a52d7c336c
Update device-specific defaults
5 years ago
Volodymyr Shymanskyy
81d9ec6c3e
Add arc32, adjust platform defaults
5 years ago
Volodymyr Shymanskyy
4615820f6b
Add Arduino101, ARC32 architecture
5 years ago
Volodymyr Shymanskyy
49f9101702
Add memoryLimit, update examples. #57
5 years ago
Volodymyr Shymanskyy
175bbfc64a
Update examples
5 years ago
Volodymyr Shymanskyy
c6bf46fc36
Detect RISC-V ISA extensions
5 years ago
Volodymyr Shymanskyy
489d950fd2
Update platform-specific defaults
5 years ago
Volodymyr Shymanskyy
32c938e975
Update platform-specific defaults
5 years ago
Volodymyr Shymanskyy
cd1b8f936a
Move AVR math functions to utils
5 years ago
Max Graey
a767630e45
implement rint / rintf via lrint ( #36 )
...
* implement rint / rintf via lrint
* optimize
* prefer 32-bit regs for reinterpret cast
* clean unnecessary parentesis
* fixed
5 years ago
Volodymyr Shymanskyy
4790280bee
Fix formatting
5 years ago
Volodymyr Shymanskyy
fb8de6ad56
Enable AVR build test
5 years ago
Volodymyr Shymanskyy
9b961a27de
Add xtensa, avr architectures
5 years ago
Volodymyr Shymanskyy
646eeaa53e
Cleanup
5 years ago
Volodymyr Shymanskyy
efaf15e0fc
Update macros
5 years ago