We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d78eb5 commit a41dd1cCopy full SHA for a41dd1c
ports/webassembly/notes.md
@@ -42,6 +42,19 @@ Problems with mp_init() - in runtime - Near VM compilation fails
42
Might be a linking issue, or memory handling issue, for example this code would cause the same error:
43
44
45
+```c
46
+ #define MICROPY_HEAP_SIZE (32 * 1024)
47
+ static char heap[MICROPY_HEAP_SIZE];
48
+
49
+ __attribute__((export_name("hello_easy_c")))
50
+ void hello_easy_c() {
51
52
+ uint32_t result = 42;
53
+ *((int32_t*)heap) = result;
54
+ value_return((uint64_t)heap, sizeof(int32_t));
55
+ }
56
+```
57
58
Error:
59
0: Error: An error occurred during a `FunctionCall` Action, parameter is debug message.
60
CompilationError(PrepareError(Memory))
0 commit comments