2014-12-13 5:51 GMT+01:00 Joe Ellsworth <joexdobs@xxxxxxxxx>: > The big issue right is that I still have > not successfully allocated memory beyond 4 Gig even using the > ffi.C.malloc(). Did you compile luajit as 64 bit? If not, that is your problem, as 32 bit processes can't address more than 4 GB of memory. I tested with a 64 bit one, and it can allocate about as much as physical memory I have. Also, what's the error when you try to compile with msvcbuild.bat? It works perfectly for me, and I think it's the "best" way to compile luajit on windows.