Jeroen Demeyer on Tue, 04 Apr 2017 10:05:02 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: emscripten and mmap() |
On 2017-04-04 00:09, Bill Allombert wrote:
... and cygwin at least (that is what #1912 is about).
That's really a different issue from emscripten. PARI itself works fine. The issue with Cygwin is that fork() behaves very differently. Unlike Linux, it does not have copy-on-write semantics. In this case, the flag MAP_NORESERVE apparently makes a difference.
Apparently, the emulation of mmap() in emscripten lacks features: for example, MAP_FIXED and the PROT_... flags are simply not supported.Do you have a reference for that ?
If I'm reading this correctly, mmap() just calls malloc(), ignoring all flags:
https://github.com/kripken/emscripten/blob/master/src/library_syscall.js#L872