#!/bin/sh
# generate t/native_pbc_{1,2}.pbc
# this should be run on i386 systems to regenerate the first two
# native tests
# NOTE: This will need a perl compiled with long double support
# NOTE2: Installing ccache speeds this process up considerably
# run it as:
# $ sh tools/dev/mk_native_pbc
make -s progclean
make -s -C imcc clean
perl Configure.pl --debugging --floatval="long double" --nomanicheck
tail myconfig
make -s
./parrot -o n.pbc t/op/number_1.pasm
mv n.pbc t/native_pbc/number_2.pbc
make -s progclean
make -s -C imcc clean
perl Configure.pl --debugging --floatval=double --nomanicheck
tail myconfig
make -s
./parrot -o n.pbc t/op/number_1.pasm
mv n.pbc t/native_pbc/number_1.pbc
make pdump
pdump -h t/native_pbc/number_1.pbc
pdump -h t/native_pbc/number_2.pbc
perl t/harness t/native_pbc/number.t
syntax highlighted by Code2HTML, v. 0.9.1