Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #32265] disassembler broken

18 views
Skip to first unread message

Matt Diephouse

unread,
Nov 1, 2004, 11:57:09 AM11/1/04
to bugs-bi...@rt.perl.org
# New Ticket Created by Matt Diephouse
# Please include the string: [perl #32265]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32265 >


The disassembler compiles but doesn't work.

matt@mendelssohn:~/parrot$ make disassemble
src/disassemble.c
echo ast/ast.y -d -o ast/astparser.c -p AST
ast/ast.y -d -o ast/astparser.c -p AST
/usr/bin/perl -e 'open(A,qq{>>$_}) or die foreach @ARGV' ast/ast.y.flag
ast/astparser.c ast/astparser.h
c++ -o disassemble src/disassemble.o -L/usr/local/lib -Wl,-E -g
blib/lib/libparrot.a blib/lib/libicuuc.a blib/lib/libicudata.a -ldl -lm
-lpthread -lcrypt -lrt
matt@mendelssohn:~/parrot$ ./disassemble forth/forth.pir
PackFile_unpack: Invalid wordsize 46
Parrot VM: Can't unpack packfile forth/forth.pir.

--
matt diephouse
http://matt.diephouse.com

Dan Sugalski

unread,
Nov 1, 2004, 4:50:21 PM11/1/04
to perl6-i...@perl.org, bugs-bi...@rt.perl.org, Matt Diephouse
At 8:57 AM -0800 11/1/04, Matt Diephouse (via RT) wrote:
>The disassembler compiles but doesn't work.
>
>matt@mendelssohn:~/parrot$ make disassemble
>src/disassemble.c
>echo ast/ast.y -d -o ast/astparser.c -p AST
>ast/ast.y -d -o ast/astparser.c -p AST
>/usr/bin/perl -e 'open(A,qq{>>$_}) or die foreach @ARGV' ast/ast.y.flag
>ast/astparser.c ast/astparser.h
>c++ -o disassemble src/disassemble.o -L/usr/local/lib -Wl,-E -g
>blib/lib/libparrot.a blib/lib/libicuuc.a blib/lib/libicudata.a -ldl -lm
>-lpthread -lcrypt -lrt
>matt@mendelssohn:~/parrot$ ./disassemble forth/forth.pir
>PackFile_unpack: Invalid wordsize 46
>Parrot VM: Can't unpack packfile forth/forth.pir.

Erm... .pir isn't bytecode. What happens when you run the
disassembler on the bytecode you get if you compile forth.pir?
--
Dan

--------------------------------------it's like this-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

Matt Diephouse

unread,
Nov 1, 2004, 6:01:31 PM11/1/04
to Dan Sugalski, perl6-i...@perl.org, bugs-bi...@rt.perl.org, via RT Matt Diephouse
On Mon, 1 Nov 2004 16:50:21 -0500, Dan Sugalski <d...@sidhe.org> wrote:
> Erm... .pir isn't bytecode. What happens when you run the
> disassembler on the bytecode you get if you compile forth.pir?

d'oh! <insert obligatory comment about mondays>.

Anyway, it still doesn't work:

matt@mendelssohn:~/parrot$ ./disassemble forth/forth.pbc
PackFile_unpack: Bytecode not valid for this interpreter: fingerprint mismatch
Parrot VM: Can't unpack packfile forth/forth.pbc.

--
matt

Leopold Toetsch

unread,
Nov 2, 2004, 3:51:39 AM11/2/04
to ma...@diephouse.com, perl6-i...@perl.org
Matt Diephouse <mdd...@gmail.com> wrote:

> matt@mendelssohn:~/parrot$ ./disassemble forth/forth.pbc
> PackFile_unpack: Bytecode not valid for this interpreter: fingerprint mismatch

You got an old forth.pbc, probably. Fingerprinting is disabled for the
release, so it might be, that you can run forth.pbc with the released
Parrot but not with a current one.

$ make world
...
$ ./parrot -o mops.pbc mops.pasm

$ ./disassemble mops.pbc
null_i I2
set_i_ic I3,1
set_i_ic I4,100000000
...

leo

Matt Diephouse

unread,
Nov 2, 2004, 12:19:54 PM11/2/04
to l...@toetsch.at, perl6-i...@perl.org
On Tue, 2 Nov 2004 09:51:39 +0100, Leopold Toetsch <l...@toetsch.at> wrote:
> You got an old forth.pbc, probably. Fingerprinting is disabled for the
> release, so it might be, that you can run forth.pbc with the released
> Parrot but not with a current one.

Odd, because it was newly made bytecode, but I ran it again and it
worked. Pardon the noise.

--
matt

0 new messages