Ticket #284: rename-pdump.patch
File rename-pdump.patch, 23.5 KB (added by fperrad, 13 years ago) |
---|
-
config/gen/makefiles/root.in
458 458 PARROT = $(CUR_DIR)/@test_prog@$(EXE) 459 459 MINIPARROT = $(CUR_DIR)/miniparrot$(EXE) 460 460 DIS = $(CUR_DIR)/pbc_disassemble$(EXE) 461 PDUMP = $(CUR_DIR)/p dump$(EXE)461 PDUMP = $(CUR_DIR)/pbc_dump$(EXE) 462 462 PINFO = $(CUR_DIR)/pbc_info$(EXE) 463 463 PBCMERGE = $(CUR_DIR)/pbc_merge$(EXE) 464 464 PDB = $(CUR_DIR)/parrot_debugger$(EXE) … … 468 468 # Installable executables 469 469 INSTALLABLEPARROT = $(CUR_DIR)/installable_parrot$(EXE) 470 470 INSTALLABLEDIS = $(CUR_DIR)/installable_pbc_disassemble$(EXE) 471 INSTALLABLEPDUMP = $(CUR_DIR)/installable_p dump$(EXE)471 INSTALLABLEPDUMP = $(CUR_DIR)/installable_pbc_dump$(EXE) 472 472 INSTALLABLEPINFO = $(CUR_DIR)/installable_pbc_info$(EXE) 473 473 INSTALLABLEPBCMERGE = $(CUR_DIR)/installable_pbc_merge$(EXE) 474 474 INSTALLABLEPDB = $(CUR_DIR)/installable_parrot_debugger$(EXE) … … 903 903 # Parrot Dump 904 904 # 905 905 906 $(PDUMP) : $(SRC_DIR)/p dump$(O) $(SRC_DIR)/packdump$(O) $(LIBPARROT)906 $(PDUMP) : $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) $(LIBPARROT) 907 907 $(LINK) @ld_out@$@ \ 908 $(SRC_DIR)/p dump$(O) \908 $(SRC_DIR)/pbc_dump$(O) \ 909 909 $(SRC_DIR)/packdump$(O) @rpath_blib@ $(ALL_PARROT_LIBS) $(LINKFLAGS) 910 910 #IF(win32): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;1 911 911 912 $(SRC_DIR)/p dump$(O) : $(GEN_HEADERS)912 $(SRC_DIR)/pbc_dump$(O) : $(GEN_HEADERS) 913 913 914 $(INSTALLABLEPDUMP) : $(SRC_DIR)/p dump$(O) $(SRC_DIR)/packdump$(O) $(LIBPARROT)914 $(INSTALLABLEPDUMP) : $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) $(LIBPARROT) 915 915 $(LINK) @ld_out@$@ \ 916 $(SRC_DIR)/p dump$(O) \916 $(SRC_DIR)/pbc_dump$(O) \ 917 917 $(SRC_DIR)/packdump$(O) \ 918 918 @rpath_lib@ $(ALL_PARROT_LIBS) $(LINKFLAGS) 919 919 #IF(win32): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;1 … … 1597 1597 $(INSTALLABLEPDB) \ 1598 1598 pbc_to_exe.pir pbc_to_exe.pbc pbc_to_exe.c pbc_to_exe$(O) pbc_to_exe$(EXE) \ 1599 1599 $(IMCC_DIR)/main$(O) \ 1600 $(PDUMP) $(SRC_DIR)/p dump$(O) $(SRC_DIR)/packdump$(O) \1600 $(PDUMP) $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) \ 1601 1601 $(SRC_DIR)/pbc_info$(O) $(PINFO) \ 1602 1602 $(PDB) $(SRC_DIR)/parrot_debugger$(O) \ 1603 1603 $(PBCMERGE) $(SRC_DIR)/pbc_merge$(O) \ … … 1634 1634 $(INSTALLABLEPDB) \ 1635 1635 $(INSTALLABLECONFIG) \ 1636 1636 $(IMCC_DIR)/main$(O) \ 1637 $(PDUMP) $(SRC_DIR)/p dump$(O) $(SRC_DIR)/packdump$(O) \1637 $(PDUMP) $(SRC_DIR)/pbc_dump$(O) $(SRC_DIR)/packdump$(O) \ 1638 1638 $(SRC_DIR)/pbc_info$(O) $(PINFO) \ 1639 1639 $(PDB) $(SRC_DIR)/parrot_debugger$(O) \ 1640 1640 $(PBCMERGE) $(SRC_DIR)/pbc_merge$(O) \ -
docs/dev/fhs.pod
56 56 57 57 This is the primary directory of executable commands on the system. All 58 58 executables that are intended to be called directly by the user (i.e. 59 parrot, p dump, disassemble, parrot-debugger, pbc_info,pbg_merge, ...)59 parrot, parrot_debugger, pbc_disassemble, pbc_dump, pbc_info, pbg_merge, ...) 60 60 should go here. The current version number should be appended to the 61 61 binaries itself and a symlink needs to be created that points from the 62 62 binary with version number to the normal name of the file without a -
docs/parrotbyte.pod
25 25 26 26 The B<Wordsize> (or C<opcode_t> size) must be 4 (32-bit) or 8 (64 bit). The 27 27 bytecode loader is responsible for transforming the file into the VM native 28 wordsize on the fly. For performance, a utility F<p dump> is provided to convert29 PBCs on disk if they cannot be recompiled. See F<src/p dump.c> for more28 wordsize on the fly. For performance, a utility F<pbc_dump> is provided to convert 29 PBCs on disk if they cannot be recompiled. See F<src/pbc_dump.c> for more 30 30 information. 31 31 32 32 B<Byteorder> currently supports two values: (0-Little Endian, 1-Big Endian) … … 333 333 =head1 SEE ALSO 334 334 335 335 F<packfile.c>, F<packfile.h>, F<packout.c>, F<packdump.c>, F<pf/*.c>, and the 336 B<p dump> utility F<pdump.c>.336 B<pbc_dump> utility F<pbc_dump.c>. 337 337 338 338 =head1 AUTHOR 339 339 -
MANIFEST
1 1 # ex: set ro: 2 2 # $Id$ 3 3 # 4 # generated by tools/dev/mk_manifest_and_skip.pl S un Feb 1 22:48:402009 UT4 # generated by tools/dev/mk_manifest_and_skip.pl Sat Feb 7 12:51:06 2009 UT 5 5 # 6 6 # See tools/dev/install_files.pl for documentation on the 7 7 # format of this file. … … 2796 2797 src/packout.c [] 2797 2798 src/parrot_debugger.c [] 2798 2799 src/pbc_disassemble.c [] 2800 src/pbc_dump.c [] 2799 2801 src/pbc_info.c [] 2800 2802 src/pbc_merge.c [] 2801 src/pdump.c []2802 2803 src/pic.c [] 2803 2804 src/pic_jit.c [] 2804 2805 src/pmc.c [] -
MANIFEST.generated
66 66 installable_parrot_debugger.exe [main]bin 67 67 installable_pbc_disassemble [main]bin 68 68 installable_pbc_disassemble.exe [main]bin 69 installable_pbc_dump [main]bin 70 installable_pbc_dump.exe [main]bin 69 71 installable_pbc_info [main]bin 70 72 installable_pbc_info.exe [main]bin 71 73 installable_pbc_merge [main]bin 72 74 installable_pbc_merge.exe [main]bin 73 installable_pdump [main]bin74 installable_pdump.exe [main]bin75 75 libparrot.dll [main]bin 76 76 parrot.pc [main]pkgconfig 77 77 pbc_disassemble [main]bin 78 78 pbc_disassemble.exe [main]bin 79 pbc_dump [main]bin 80 pbc_dump.exe [main]bin 79 81 pbc_info [main]bin 80 82 pbc_info.exe [main]bin 81 83 pbc_merge [main]bin … … 84 86 pbc_to_exe.exe [main]bin 85 87 pdb [main]bin 86 88 pdb.exe [main]bin 87 pdump [main]bin88 pdump.exe [main]bin89 89 runtime/parrot/dynext/apl_group.bundle [library] 90 90 runtime/parrot/dynext/apl_group.dll [library] 91 91 runtime/parrot/dynext/apl_group.dylib [library] -
parrot.spec
115 115 %exclude %{_bindir}/perl6 116 116 %exclude %{_bindir}/parrot_debugger 117 117 %exclude %{_bindir}/pbc_* 118 %exclude %{_bindir}/pdump119 118 %{_bindir}/* 120 119 %{_libdir}/parrot 121 120 %{_libdir}/libparrot.so.* … … 135 134 %{_bindir}/pbc_info 136 135 %{_bindir}/pbc_merge 137 136 %{_bindir}/pbc_to_exe 138 %{_bindir}/p dump137 %{_bindir}/pbc_dump 139 138 %{_includedir}/parrot 140 139 %{_libdir}/libparrot.so 141 140 %{_libdir}/libparrot.a -
ports/cygwin/README
57 57 /usr/bin/parrot.exe 58 58 /usr/bin/parrot_config.exe 59 59 /usr/bin/parrot_debugger.exe 60 /usr/bin/pbc_dump.exe 60 61 /usr/bin/pbc_info.exe 61 62 /usr/bin/pbc_merge.exe 62 63 /usr/bin/pbc_to_exe.exe 63 /usr/bin/pdump.exe64 64 /usr/lib/parrot/config_lib.pasm 65 65 /usr/lib/parrot/myconfig 66 66 /usr/lib/parrot/parrotbug -
ports/debian/parrot.install
1 1 usr/bin/parrot 2 2 usr/bin/pbc_disassemble 3 usr/bin/pbc_dump 3 4 usr/bin/pbc_info 4 5 usr/bin/pbc_merge 5 usr/bin/pdump6 6 usr/lib/parrot/* -
ports/debian/rules
21 21 22 22 build: build-stamp 23 23 24 build-stamp: configure-stamp 24 build-stamp: configure-stamp 25 25 dh_testdir 26 26 $(MAKE) installable 27 27 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" docs/running.pod debian/parrot.1 28 28 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" parrot_config debian/parrot_config.1 29 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" src/p dump.c debian/pdump.129 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" src/pbc_dump.c debian/pbc_dump.1 30 30 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" src/pbc_disassemble.c debian/pbc_disassemble.1 31 31 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" src/parrot_debugger.c debian/parrot-debugger.1 32 32 pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" src/pbc_info.c debian/pbc_info.1 … … 36 36 clean: 37 37 dh_testdir 38 38 dh_testroot 39 rm -f build-stamp configure-stamp debian/parrot.1 debian/parrot_config.1 debian/p dump.1 debian/pbc_disassemble.1 debian/parrot-debugger.1 debian/pbc_info.1 debian/pbc_merge.1 debian/libparrot$(SOVERSION).install src/nci_test.o src/main.o ext/Parrot-Embed/Makefile.PL languages/PIR/Makefile languages/perl5/Makefile languages/pynie/Makefile runtime/parrot/include/signal.pasm test.c test.ldo39 rm -f build-stamp configure-stamp debian/parrot.1 debian/parrot_config.1 debian/pbc_dump.1 debian/pbc_disassemble.1 debian/parrot-debugger.1 debian/pbc_info.1 debian/pbc_merge.1 debian/libparrot$(SOVERSION).install src/nci_test.o src/main.o ext/Parrot-Embed/Makefile.PL languages/PIR/Makefile languages/perl5/Makefile languages/pynie/Makefile runtime/parrot/include/signal.pasm test.c test.ldo 40 40 [ ! -f Makefile ] || $(MAKE) distclean 41 dh_clean 41 dh_clean 42 42 43 43 debian/libparrot$(SOVERSION).install: debian/libparrot.install VERSION 44 44 cp $< $@ … … 77 77 dh_testdir -a 78 78 dh_testroot -a 79 79 dh_installchangelogs -a ChangeLog 80 dh_installman -pparrot debian/parrot.1 debian/p dump.1 debian/pbc_disassemble.1 debian/parrot-debugger.1 debian/pbc_info.1 debian/pbc_merge.180 dh_installman -pparrot debian/parrot.1 debian/pbc_dump.1 debian/pbc_disassemble.1 debian/parrot-debugger.1 debian/pbc_info.1 debian/pbc_merge.1 81 81 dh_installdocs -a 82 82 dh_strip -a 83 83 dh_compress -a -
src/packdump.c
10 10 11 11 =head1 DESCRIPTION 12 12 13 This is only used by the PBC dumper C<p dump>.13 This is only used by the PBC dumper C<pbc_dump>. 14 14 15 15 =head2 Functions 16 16 … … 397 397 398 398 =head1 SEE ALSO 399 399 400 F<src/p dump.c>.400 F<src/pbc_dump.c>. 401 401 402 402 =cut 403 403 -
src/pbc_dump.c
4 4 5 5 =head1 NAME 6 6 7 p dump - Dump or convert Parrot bytecode (PBC) files7 pbc_dump - Dump or convert Parrot bytecode (PBC) files 8 8 9 9 =head1 SYNOPSIS 10 10 11 p dump [-tdh] [--terse|--disassemble|--header-only] file.pbc11 pbc_dump [-tdh] [--terse|--disassemble|--header-only] file.pbc 12 12 13 p dump -o converted.pbc file.pbc13 pbc_dump -o converted.pbc file.pbc 14 14 15 15 =head1 DESCRIPTION 16 16 … … 173 173 174 174 static void help(void) 175 175 { 176 printf("p dump - dump or convert parrot bytecode (PBC) files\n");176 printf("pbc_dump - dump or convert parrot bytecode (PBC) files\n"); 177 177 printf("usage:\n"); 178 printf("p dump [-tdh] [--terse|--disassemble|--header-only] file.pbc\n");179 printf("p dump -o converted.pbc file.pbc\n\n");178 printf("pbc_dump [-tdh] [--terse|--disassemble|--header-only] file.pbc\n"); 179 printf("pbc_dump -o converted.pbc file.pbc\n\n"); 180 180 printf("\t-d ... disassemble bytecode segments\n"); 181 181 printf("\t-h ... dump header only\n"); 182 182 printf("\t-t ... terse output\n"); -
src/pdump.c
1 /*2 Copyright (C) 2001-2003, The Perl Foundation.3 $Id$4 5 =head1 NAME6 7 pdump - Dump or convert Parrot bytecode (PBC) files8 9 =head1 SYNOPSIS10 11 pdump [-tdh] [--terse|--disassemble|--header-only] file.pbc12 13 pdump -o converted.pbc file.pbc14 15 =head1 DESCRIPTION16 17 A program to dump pack files to human readable form.18 19 =head2 Command-Line Options20 21 =over 422 23 =item C<-d>24 25 Disassemble bytecode segments.26 27 =item C<-h>28 29 Dump the bytecode header only.30 31 =item C<-t>32 33 Terse output.34 35 =item C<-o converted.pbc>36 37 Repacks a PBC file into the platform's native binary format for better38 efficiency on reading non-native PBCs.39 40 =back41 42 =head2 Functions43 44 =over 445 46 =cut47 48 */49 50 #include "parrot/parrot.h"51 #include "parrot/embed.h"52 #include "parrot/oplib/ops.h"53 54 /*55 56 =item C<static void57 const_dump(PARROT_INTERP, const PackFile_Segment *segp)>58 59 Dump the constant table.60 61 =cut62 63 */64 65 static void66 const_dump(PARROT_INTERP, const PackFile_Segment *segp)67 {68 Parrot_io_printf(interp, "%s => [\n", segp->name);69 PackFile_ConstTable_dump(interp, (const PackFile_ConstTable *)segp);70 Parrot_io_printf(interp, "],\n");71 }72 73 /*74 75 =item C<static void76 fixup_dump(PARROT_INTERP, const PackFile_Segment *segp)>77 78 Dump the fixup table.79 80 =cut81 82 */83 84 static void85 fixup_dump(PARROT_INTERP, const PackFile_Segment *segp)86 {87 Parrot_io_printf(interp, "%s => [\n", segp->name);88 PackFile_Fixup_dump(interp, (const PackFile_FixupTable *)segp);89 Parrot_io_printf(interp, "],\n");90 }91 92 /*93 94 =item C<static void95 disas_dump(PARROT_INTERP, const PackFile_Segment *self)>96 97 Disassemble and dump.98 99 =cut100 101 */102 103 static void104 disas_dump(PARROT_INTERP, const PackFile_Segment *self)105 {106 opcode_t *pc;107 size_t i, n;108 Parrot_io_printf(interp, "%s => [ # %d ops at offs 0x%x\n",109 self->name, (int)self->size, (int)self->file_offset + 4);110 pc = self->data;111 while (pc < self->data + self->size) {112 /* trace_op_dump(interp, self->pf->src, pc); */113 Parrot_io_printf(interp, " %04x: ", (int) (pc - self->data));114 n = (size_t)interp->op_info_table[*pc].op_count;115 for (i = 0; i < 6; i++)116 if (i < n)117 Parrot_io_printf(interp, "%08lx ", (unsigned long) pc[i]);118 else119 Parrot_io_printf(interp, " ");120 Parrot_io_printf(interp, "%s\n",121 interp->op_info_table[*pc].full_name);122 ADD_OP_VAR_PART(interp, interp->code, pc, n);123 pc += n;124 }125 Parrot_io_printf(interp, "]\n");126 }127 128 /*129 130 =item C<static void131 PackFile_header_dump(PARROT_INTERP, PackFile *pf)>132 133 Dump the header.134 135 =cut136 137 */138 139 static void140 PackFile_header_dump(PARROT_INTERP, PackFile *pf)141 {142 Parrot_io_printf(interp, "HEADER => [\n");143 Parrot_io_printf(interp, "\twordsize = %d", pf->header->wordsize);144 Parrot_io_printf(interp, "\t(interpreter's wordsize/INTVAL = %d/%d)\n",145 sizeof (opcode_t), sizeof (INTVAL));146 Parrot_io_printf(interp, "\tbyteorder = %d", pf->header->byteorder);147 Parrot_io_printf(interp, "\t(interpreter's byteorder = %d)\n",148 PARROT_BIGENDIAN);149 Parrot_io_printf(interp, "\tfloattype = %d", pf->header->floattype);150 Parrot_io_printf(interp, "\t(interpreter's NUMVAL_SIZE = %d)\n", NUMVAL_SIZE);151 Parrot_io_printf(interp, "\tparrot-version %d.%d.%d, bytecode-version %d.%d\n",152 pf->header->major, pf->header->minor, pf->header->patch,153 pf->header->bc_major, pf->header->bc_minor);154 Parrot_io_printf(interp, "\tUUID type = %d, UUID size = %d\n",155 pf->header->uuid_type, pf->header->uuid_size);156 Parrot_io_printf(interp, "\t%s endianize, %s opcode, %s numval transform\n",157 pf->need_endianize ? "**need**" : "no",158 pf->need_wordsize ? "**need**" : "no",159 pf->fetch_nv ? "**need**" : "no");160 Parrot_io_printf(interp, "\tdirformat = %d\n", pf->header->dir_format);161 Parrot_io_printf(interp, "]\n");162 }163 164 /*165 166 =item C<static void help(void)>167 168 Print out the user help info.169 170 =cut171 172 */173 174 static void help(void)175 {176 printf("pdump - dump or convert parrot bytecode (PBC) files\n");177 printf("usage:\n");178 printf("pdump [-tdh] [--terse|--disassemble|--header-only] file.pbc\n");179 printf("pdump -o converted.pbc file.pbc\n\n");180 printf("\t-d ... disassemble bytecode segments\n");181 printf("\t-h ... dump header only\n");182 printf("\t-t ... terse output\n");183 printf("\n\t-o converted.pbc repacks a PBC file into "184 "the platform's native\n");185 printf("\t binary format for better efficiency on reading "186 "non native PBCs\n");187 exit(EXIT_SUCCESS);188 }189 190 static struct longopt_opt_decl options[] = {191 { 'h', 'h', OPTION_optional_FLAG, { "--header-only" } },192 { '?', '?', OPTION_optional_FLAG, { "--help" } },193 { 't', 't', OPTION_optional_FLAG, { "--terse" } },194 { 'd', 'd', OPTION_optional_FLAG, { "--disassemble" } },195 { 'o', 'o', OPTION_required_FLAG, { "--output" } }196 };197 198 /*199 200 =item C<int201 main(int argc, char **argv)>202 203 The run loop. Process the command-line arguments and dump accordingly.204 205 =cut206 207 */208 209 int210 main(int argc, const char **argv)211 {212 PackFile *pf;213 Interp *interp;214 int terse = 0;215 int disas = 0;216 int convert = 0;217 int header = 0;218 const char *file = NULL;219 struct longopt_opt_info opt = LONGOPT_OPT_INFO_INIT;220 int status;221 222 if (argc < 2) {223 help();224 }225 interp = Parrot_new(NULL);226 /* init and set top of stack */227 Parrot_init_stacktop(interp, &status);228 while ((status = longopt_get(interp,229 argc, argv, options, &opt)) > 0) {230 switch (opt.opt_id) {231 case 'h':232 header = 1;233 break;234 case 't':235 terse = 1;236 break;237 case 'd':238 disas = 1;239 break;240 case 'o':241 file = opt.opt_arg;242 convert = 1;243 break;244 case '?':245 default:246 help();247 break;248 }249 }250 if (status == -1) {251 help();252 }253 argc -= opt.opt_index;254 argv += opt.opt_index;255 256 257 pf = Parrot_readbc(interp, *argv);258 259 if (!pf) {260 printf("Can't read PBC\n");261 return 1;262 }263 Parrot_loadbc(interp, pf);264 if (convert) {265 size_t size;266 opcode_t *pack;267 FILE *fp;268 269 size = PackFile_pack_size(interp,270 interp->code->base.pf) * sizeof (opcode_t);271 pack = (opcode_t*) mem_sys_allocate(size);272 if (!pack) {273 printf("out of mem\n");274 exit(EXIT_FAILURE);275 }276 PackFile_pack(interp, interp->code->base.pf, pack);277 if (STREQ(file, "-"))278 fp = stdout;279 else if ((fp = fopen(file, "wb")) == 0) {280 printf("Couldn't open %s\n", file);281 exit(EXIT_FAILURE);282 }283 284 if ((1 != fwrite(pack, size, 1, fp))) {285 printf("Couldn't write %s\n", file);286 exit(EXIT_FAILURE);287 }288 fclose(fp);289 mem_sys_free(pack);290 Parrot_exit(interp, 0);291 }292 293 PackFile_header_dump(interp, pf);294 if (header) {295 Parrot_exit(interp, 0);296 }297 /* install a dumper function */298 if (!terse) {299 pf->PackFuncs[PF_CONST_SEG].dump = const_dump;300 pf->PackFuncs[PF_FIXUP_SEG].dump = fixup_dump;301 }302 if (disas)303 pf->PackFuncs[PF_BYTEC_SEG].dump = disas_dump;304 /* do a directory dump, which dumps segs then */305 PackFile_Segment_dump(interp, &pf->directory.base);306 307 Parrot_exit(interp, 0);308 }309 310 /*311 312 =back313 314 =head1 SEE ALSO315 316 F<src/packdump.c>.317 318 =cut319 320 */321 322 /*323 * Local variables:324 * c-file-style: "parrot"325 * End:326 * vim: expandtab shiftwidth=4:327 */ -
t/native_pbc/integer.t
38 38 39 39 The output of 40 40 41 $ p dump -h i.pbc41 $ pbc_dump -h i.pbc 42 42 43 43 should be included for reference. 44 44 45 45 On test failures please add the output of 46 46 47 $ ./p dump -h t/native_pbc/number_${N}.pbc47 $ ./pbc_dump -h t/native_pbc/number_${N}.pbc 48 48 49 49 into your report. We need your wordsize/floattype/endianess. 50 50 -
t/native_pbc/number.t
32 32 # please add it: 33 33 34 34 $ ./parrot -o n.pbc t/op/number_1.pasm 35 $ make p dump36 $ ./p dump -h n.pbc35 $ make pbc_dump 36 $ ./pbc_dump -h n.pbc 37 37 $ mv n.pbc t/native_pbc/number_$(N).pbc 38 38 39 39 # then 40 40 # - increase number of tests 41 # - include the p dump header info for reference41 # - include the pbc_dump header info for reference 42 42 # - put the file into MANIFEST 43 43 # - add the file as binary (svn add) and commit it 44 44 # thanks -leo 45 45 46 46 On test failures please add the output of 47 47 48 $ ./p dump -h t/native_pbc/number_${N}.pbc48 $ ./pbc_dump -h t/native_pbc/number_${N}.pbc 49 49 50 50 into your report. We need your wordsize/floattype/endianess. 51 51 -
tools/dev/mk_native_pbc
25 25 ./parrot -o n.pbc t/op/number_1.pasm 26 26 mv n.pbc t/native_pbc/number_1.pbc 27 27 28 make p dump29 ./p dump -h t/native_pbc/number_1.pbc30 ./p dump -h t/native_pbc/number_2.pbc28 make pbc_dump 29 ./pbc_dump -h t/native_pbc/number_1.pbc 30 ./pbc_dump -h t/native_pbc/number_2.pbc 31 31 32 32 perl t/harness t/native_pbc/number.t -
tools/dev/pbc_header.pl
30 30 31 31 =head1 SEE ALSO 32 32 33 The C<p dump> utility does a much more thorough job of showing bytecode file33 The C<pbc_dump> utility does a much more thorough job of showing bytecode file 34 34 headers. 35 35 36 36 =cut -
tools/install/smoke.pl
80 80 $out = `$exe`; 81 81 ok($out =~ /^pbc_merge/, "check pbc_merge"); 82 82 83 $exe = catfile($bindir, 'p dump');83 $exe = catfile($bindir, 'pbc_dump'); 84 84 $out = `$exe`; 85 ok($out =~ /^p dump/, "check pdump");85 ok($out =~ /^pbc_dump/, "check pbc_dump"); 86 86 87 87 ok(system("$parrot -V") == 0, "display parrot version"); 88 88