generating bytecode: test
Klaas-Jan Stol
parrotcode at gmail.com
Thu Nov 27 00:24:29 UTC 2008
Hello,
I've been experimenting with byte code generation, and made *some* progress,
but it's still not working properly.
When generating a PBC with imcc, the generated file is 800 bytes; when my
test program does it, it's around 680 bytes, so I'm missing something
somewhere.
I'll be stepping through code some more, but it's a tough process. Should
anybody be bored, attached is the file (it's not really clean code...).
Compiling must be done with the proper Include flag (windows: /Iinclude,
assuming the file is placed in parrot root directory).
Linking must be done against libparrot.lib (again, windows)
The last 2 lines of the generated output is:
================================
Subroutine returned a NULL address
current instr.: 'main' pc -1 ((unknown file):-1)
================================
which is at least something. (the file is unknown because I never set it in
the code; there's no use for this test file I guess).
Any help would be most welcome.
cheers,
kjs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.parrot.org/pipermail/parrot-dev/attachments/20081127/b76715e4/attachment-0001.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bctest.c
Url: http://lists.parrot.org/pipermail/parrot-dev/attachments/20081127/b76715e4/attachment-0001.diff
More information about the parrot-dev
mailing list