-->
Page 1 of 1

loading compiled script 1k or larger causes restart

PostPosted: Sun Jan 25, 2015 9:20 pm
by j3graham
I've been trying to use compiled lua scripts using the luac.cross compiler from eLua.

This works with compiled files up to 1020 bytes, but a file of 1024 bytes causes a restart.

The attached file contains two scripts: t1020.lua and t1024.lua and the compiled versions of them. t1020.lc loads fine using require("t1020"), but t1024.lc causes a restart.

The scripts are compiled using "luac.cross -s -cci 32 -cce little -ccn int 32"

(See viewtopic.php?f=24&t=1305 for info on what I did to compile the scripts)

Re: loading compiled script 1k or larger causes restart

PostPosted: Thu Mar 26, 2015 4:40 pm
by raz123
I'm equally curious about this. Have you found a workaround?

Re: loading compiled script 1k or larger causes restart

PostPosted: Fri Mar 27, 2015 6:12 am
by plucker
Hi,

Using the latest version, I managed to compile a file with +3KB, and got a not enough memory when the file is 4KB.
I never encounter any reboot.

Cheers,
Plucker

Edit:
Oups, didn't notice you are using a cross compiler, I compiled within lua...