3 ms·
In C for webassembly I can access the provided memory directly, which leads to the following unusual code. char *m = NULL; m[1] = 0xFF; For m[0] the compiler
by s-macke 8y ago
In C for webassembly I can access the provided memory directly, which leads to the following unusual code.
char *m = NULL;
m[1] = 0xFF;
For m[0] the compiler exchanges the code with the abort function :-)
I wonder, if something similar is possible in Rust.
- steveklabnik 8y agoI haven't tried it, but it should do the same thing.