Re: --managed-mem Enable managed memory. Used on Windows.
- Posted by ne1uno Feb 13, 2014
- 1784 views
Hallo
this option seems to be ignored on windows.
At least the binary still displays 'Using System Memory'
Andreas
That sounds like a bug. Looking at the source code, however, I think the bug is limited to an inaccurate display - it says system memory but is really using managed memory. The issue is that Makefile.gnu isn't passing the appropriate -D EU_MANAGED_MEM flag, unlike Makefile.wat
I also believe that eu* is being compiled managed mem on windows, just not properly displayed. should not be that difficult to fix.
It could be improper flags passed in the Makefile as well. I had looked into this and have mentioned it a few times in posts or bug reports as an aside, I didn't want to mess around in that area personally. I suspect this is at least partially why the bug persists if anyone else even noticed it.
I have used both Managed mem and System mem and they appear to handle memory use slightly differently. there should be some kind of quick test in the initiate manually directory to verify the build does what it claims to with memory on windows.