On Mar 25, 2006, at 5:11, Patrick R.Michaud (via RT) wrote:
.sub main
load_bytecode "PGE.pbc"
load_bytecode "dumper.pir"
load_bytecode "PGE/Dumper.pir"
$P0 = find_global "PGE::P6Rule", "$optable"
"_dumper"($P0)
.end
Another note, I forgot to mention: above code doesn't work here.
$ ./parrot pmi.pir
error:imcc:syntax error, unexpected $end
in file
'/home/lt/svn/parrot/leo/runtime/parrot/library/Data/Dumper.pir' line
51
The line number is at the end of the file.
When I load_bytecode .pbc only, it runs.
*Hola* and it produces a corrupted dump on x86/linux (gcc 4.1,
--optimize), which vanishes when running with -G. Looks like a DOD/GC
bug now.
leo