Nicolas Cannasse wrote:
Justin Collins a écrit :
Hi,

I have a module which loads another module. I would like to link these so that they are a single file. nekoc -link seems to support this, even finding the external module automatically. But I keep getting an error:

nekoc -link try.n test
test
internal
Called from neko/Main.nml line 136
Called from neko/Linker.nml line 176
Called from core/Array.nml line 112
Called from neko/Bytecode.nml line 321
Called from core/Core.nml line 172
Called from core/Core.nml line 205
Called from core/Core.nml line 197
Exception : Invalid_argument(Array.get)


I am not sure what I am doing wrong here.

Right now, modules linking is quite restricted.

I'm not sure in which limitation you're hitting but it seems like the bytecode produced by the linker is not valid (a jump operation is not correct)

If you want to contribute, you can have a look at the sources in neko/src/neko/Linker.nml , it's written in NekoML which is similar to OCaml but with a more friendly syntax ;)

Best,
Nicolas


Okay, at least it's not my fault.
I will see what I can do, however little that may be :)

Thanks,
Justin

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to