1704 Commits
Author SHA1 Message Date
Vova ebe20986d7 Fix FOMU build 2021-05-27 12:57:27 +03:00
Vova 0bf5bce357 Fix Particle build 2021-05-27 12:24:50 +03:00
Vova 2699afc07e Merge branch 'main' of https://github.com/wasm3/wasm3 2021-05-27 12:20:55 +03:00
Vova 570f2454f6 Fix WM W600 build 2021-05-27 12:20:48 +03:00
Volodymyr Shymanskyy d460452679 Update Demos.md 2021-05-24 16:15:48 +03:00
Vova 9fa673ccd1 Cleanup 2021-05-23 21:26:23 +03:00
Vlad Ivanov 728f46ab50 Fix GCC warning: cast from pointer to integer of different size (#239)
Apart from being a warning, this is technically also an instance of undefined behavior: only uintptr_t should be used to convert between addresses and integers.
2021-05-21 20:57:54 +03:00
Vova 908ed8b0eb try fixing ios 2021-05-20 02:23:30 +03:00
Vova a0548538f1 Fix CI 2021-05-20 02:05:52 +03:00
Vova b474e8ee34 Fix CI 2021-05-20 01:53:22 +03:00
Vova 8631224b23 Merge branch 'main' of https://github.com/wasm3/wasm3 2021-05-20 01:39:34 +03:00
Vova 12a89234e1 Cleanup 2021-05-20 01:39:15 +03:00
Volodymyr Shymanskyy a3699af88e Update Troubleshooting.md 2021-05-20 00:57:59 +03:00
Volodymyr Shymanskyy 2b1d829211 Update Troubleshooting.md 2021-05-20 00:56:10 +03:00
Vova 8f4879a8ad Add troubleshooting guide. Related to #238 2021-05-20 00:53:59 +03:00
Vova 6bd90d9b56 Deprecate m3_api_defs.h 2021-05-19 23:45:20 +03:00
Ivan Grokhotkov 6ae44f4ec8 platforms/esp32: trivial fixes (#237)
* platforms/esp32*: use m3_GetResultsV for stack access

* platforms/esp32*: print actual target name
2021-05-17 20:41:33 +03:00
Vova 9c47579231 Update Cosmopolitan to 1.0 2021-05-17 10:05:49 +03:00
Ivan GrokhotkovandVolodymyr Shymanskyy 17aa7231bb [breaking] cpp: pass function pointer to module::link as an argument (#236)
Previously moodule::link used the function pointer as a template
argument, because the function linked through m3_LinkRawFunctionEx
didn't receive any context pointer, so each linked function needed
a unique wrapper.
With the introduction of m3_LinkRawFunctionEx, it is possible to move
the function pointer to a regular argument.
This reduces code size when linking many functions with the same
signature.
This also makes it possible to later support arbitrary callable
objects instead of function pointers, using the same API.

Co-authored-by: Volodymyr Shymanskyy <vshymanskyi@gmail.com>
2021-05-15 17:32:16 +03:00
Vova db514ecadc Merge branch 'main' of https://github.com/wasm3/wasm3 2021-05-15 11:59:31 +03:00
Vova 27744abf6b Fix stat.st_nlink. Make signature check optional when linking. 2021-05-15 11:56:26 +03:00
Ivan Grokhotkov c618f7b7d8 platforms/cpp: demonstrate loading module from file, ensure no skipws (#235)
* cpp: env.parse_module: ensure the file is opened without skipws

Closes https://github.com/wasm3/wasm3/issues/124

* cpp: demonstrate loading a module from file

* cpp: remove leftover note about function::call doing string conversion

* cpp: add missing return value checks for m3_GetResults
2021-05-15 09:40:26 +03:00
Ivan Grokhotkov a6b61a8a71 platforms/cpp: use m3_Call and stack access API (#234)
* cpp: use m3ApiGetArg, m3ApiReturn, m3_GetResults for stack access

Still relies on an internal m3_api_defs.h, but at least less likely
to get broken, and doesn't depend on M3Runtime internals.

* cpp: use m3_Call in function::call, getting rid of string conversions

When function::call was first written, m3_Call did not exist yet, and
the only way to call functions was through m3_CallArgv which takes
arguments as strings. Now that m3_Call is available, string conversion
can be removed.

Closes https://github.com/wasm3/wasm3/issues/219
2021-05-14 23:45:07 +03:00
Mike Gray 87333d8284 Support building on macOS with M1 chip (#233) 2021-05-14 11:53:22 +03:00
Volodymyr Shymanskyy 3dbf3a6ded Update tests.yml 2021-05-12 21:52:42 +03:00
Volodymyr Shymanskyy 0ac82aedc4 Add apt update 2021-05-12 21:46:46 +03:00
Volodymyr Shymanskyy 7f7b08991b Update tests.yml 2021-05-12 21:41:54 +03:00
Vova 400b616359 Fix builds 2021-05-11 03:11:58 +03:00
Vova a6bb66229f Cleanup 2021-05-11 02:59:15 +03:00
Vova fecf2ecc5f Add Grain WASI app example 2021-05-06 20:34:39 +03:00
Vova 3c0a7c159a Merge branch 'main' of https://github.com/wasm3/wasm3 2021-05-04 23:24:32 +03:00
Vova 6bb612ccbf Disable start func execution for fuzzing builds 2021-05-04 23:23:51 +03:00
Steven Massey 67b96cc96a d_m3HasFloat=0 build fixes 2021-05-01 14:07:01 -07:00
Volodymyr Shymanskyy 29c81a5622 Update Cookbook.md 2021-05-01 02:49:21 +03:00
Volodymyr Shymanskyy ddf5afeee2 Add --gas-limit option 2021-04-30 16:58:29 +03:00
Volodymyr Shymanskyy c68aa7bdbf Update Cookbook.md 2021-04-30 16:48:14 +03:00
Volodymyr Shymanskyy 7464857046 Update Cookbook.md 2021-04-30 16:41:05 +03:00
Volodymyr Shymanskyy 0bf8cab501 Update Cookbook.md 2021-04-30 16:28:36 +03:00
Volodymyr Shymanskyy 7c5503a262 Update Cookbook.md 2021-04-30 16:11:35 +03:00
Volodymyr Shymanskyy 73ca6e7796 Update Cookbook.md 2021-04-30 15:46:54 +03:00
Volodymyr Shymanskyy c23adeba7e Update README.md 2021-04-30 15:24:06 +03:00
Volodymyr Shymanskyy a55c34377e Update Cookbook.md 2021-04-30 15:21:19 +03:00
Volodymyr Shymanskyy 461a7668b9 Update Cookbook.md 2021-04-30 15:20:47 +03:00
Volodymyr Shymanskyy f9c62af53c Update Cookbook.md 2021-04-30 15:20:11 +03:00
Volodymyr Shymanskyy 37d81e4f46 Update Cookbook.md 2021-04-30 14:42:41 +03:00
Volodymyr Shymanskyy 273ca8f42e Update Cookbook.md 2021-04-30 14:34:05 +03:00
Volodymyr Shymanskyy c620d7c855 Update Cookbook.md 2021-04-30 14:31:37 +03:00
Volodymyr Shymanskyy 79ae7573f6 Update Cookbook.md 2021-04-30 14:15:06 +03:00
Volodymyr Shymanskyy 68af26e4b4 Update Cookbook.md 2021-04-30 14:14:08 +03:00
Volodymyr Shymanskyy 011e04bcfa Update Cookbook.md 2021-04-30 13:57:16 +03:00