|
|
|
|
|
by mockery
1349 days ago
|
|
Thanks, those are specific requirements I could definitely see WASM struggling to meet. In my experience in a large+mature enough codebase (particularly one that is already multi-platform, like Postgres appears to be) many of those requirements are wrapped in an abstraction layer to allow targeting new platforms, but some requirements (like memory mapping) could definitely be dealbreakers if the target platform doesn't naturally support them. This solution still seems awfully complex (and probably not very efficient) but I certainly see why it's probably the "easiest" option. |
|
Long story short, I think the need to bypass MMU hardware emulation would prove among the most difficult problems. It will probably require assistance from the compiler, I don't know enough about WASM to guess how mature such relocations would be.