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

Compiler Toolkit

6 views
Skip to first unread message

Ovid

unread,
Nov 24, 2009, 9:52:34 AM11/24/09
to perl6-i...@perl.org
Figured I'd brush up on the compiler toolkit described at http://www.parrotblog.org/2008/03/targeting-parrot-vm.html

It appears to be out of date.. For example, you cannot run 'make test'. Reading the README which is generated with 'perl tools/dev/mk_language_shell.pl SomeLang' doesn't help because it refers me to non-existent files. Anyone know about about this area and can fix up a few things so people can dive back into writing compilers?


Cheers,
Ovid
--
Buy the book - http://www.oreilly..com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6


Ovid

unread,
Nov 24, 2009, 10:42:45 AM11/24/09
to perl6-i...@perl.org
----- Original Message ----

> From: François Perrad <francoi...@gadz.org>

> the mantra is :
> $ parrot setup.pir
> $ parrot setup..pir test

After successfully building and installing Parrot on my Mac, the "parrot setup.pir" still fails badly.

parrot $ parrot --version
This is Parrot version 1.8.0-devel built for i386-darwin.
Copyright (C) 2001-2009, Parrot Foundation.

This code is distributed under the terms of the Artistic License 2.0.
For more details, see the full text of the license in the LICENSE file
included in the Parrot source tree.

parrot $ perl tools/dev/mk_language_shell.pl checkit
creating checkit/
creating checkit/README
creating checkit/Configure.pir
creating checkit/setup.pir
creating checkit/PARROT_REVISION
no ops: skipping checkit/src/ops/Makefile.in
no pmc: skipping checkit/src/pmc/Makefile.in
creating checkit/Makefile.in
no doc: skipping checkit/doc/checkit.pod
no doc: skipping checkit/doc/running.pod
no dynext: skipping checkit/dynext/.ignore
creating checkit/checkit/
creating checkit/checkit/.ignore
creating checkit/checkit.pir
creating checkit/src/
creating checkit/src/checkit.pir
creating checkit/src/parser/
creating checkit/src/parser/grammar.pg
creating checkit/src/parser/grammar-oper.pg
creating checkit/src/parser/actions.pm
no pmc: skipping checkit/src/pmc/checkit.pmc
no ops: skipping checkit/src/ops/checkit.ops
creating checkit/src/builtins.pir
creating checkit/src/builtins/
creating checkit/src/builtins/say.pir
creating checkit/t/
creating checkit/t/00-sanity.t
parrot $ cd checkit/
checkit $ ls
Configure.pir PARROT_REVISION checkit setup.pir t
Makefile.in README checkit.pir src
checkit $ parrot setup.pir
/usr/local/bin/parrot
/usr/local/lib/parrot/1.8.0-devel/library/PGE/Perl6Grammar.pbc
--output=src/gen_grammar.pir src/parser/grammar.pg
src/parser/grammar-oper.pg
/usr/local/bin/parrot
/usr/local/lib/parrot/1.8.0-devel/languages/nqp/nqp.pbc --target=pir
--output=src/gen_actions.pir src/parser/actions.pm
/usr/local/bin/parrot -o xyz/xyz..pbc src/xyz.pir
Error reading source file src/xyz.pir.
/usr/local/bin/parrot -o xyz.pbc xyz.pir
Error reading source file xyz.pir.
/usr/local/bin/pbc_to_exe xyz.pbc --install
Unable to open filehandle from path 'xyz.pbc'
current instr.: 'generate_code_gcc' pc 496 (tools/dev/pbc_to_exe.pir:298)
called from Sub 'main' pc -1 ((unknown file):-1)
strip installable_xyz
strip: can't open file: installable_xyz (No such file or directory)

Kjstol

unread,
Nov 24, 2009, 1:56:53 PM11/24/09
to Ovid, perl6-i...@perl.org
HI,
I authored the thing, but dont' have time and tuits to update it,
unfortunately, sorry.

I think pmichaud was planning to write a new tutorial. we should
consider whether it's worth the effort to update the old one. If so,
the best way would be to go through each episode, and see what
changed, and change that accordingly.

sorry again, but I'm up the walls for the next few months due to deadlines.

cheers,
kjs

0 new messages