4 ms·
> By memory permissions, do you mean setting page-level permissions, like mprotect on Unix? Yes, exactly. > But different targets have different page sizes: m
by saagarjha 7y ago
> By memory permissions, do you mean setting page-level permissions, like mprotect on Unix?
Yes, exactly.
> But different targets have different page sizes: most Unix systems have 4kb pages, but iOS has 16kb pages; Windows has 4kb pages which can be protected individually, but separate memory mappings can only be on 64k aligned boundaries; and Linux can be configured with multiple page size options.
I haven't looked into it much, but perhaps WASI could abstract some of this, or make this information available to applications?
> And some little microcontrollers don’t have an MMU at all, yet there are people trying to run WebAssembly on microcontrollers for some strange reason.
It might be a little bit overhyped ;)