Author: bernhard
Date: Fri May  6 13:29:48 2005
New Revision: 7995

Added:
   trunk/languages/bf/t/test_bfco.t
      - copied, changed from rev 7994, trunk/languages/bf/t/test_bfc.t
Modified:
   trunk/config/gen/makefiles/bf.in
   trunk/languages/bf/bf.pasm
   trunk/languages/bf/test.bf
Log:
Build and compile the optimized bf compiler.
Do not use Perl* PMC in bf.pasm.


Modified: trunk/config/gen/makefiles/bf.in
==============================================================================
--- trunk/config/gen/makefiles/bf.in    (original)
+++ trunk/config/gen/makefiles/bf.in    Fri May  6 13:29:48 2005
@@ -22,10 +22,17 @@
 test: build
        cd .. && $(PERL) bf/t/harness
 
-build: bf.pasm
+build: bf.pbc bfc.pbc bfco.pbc
+
+bf.pbc: bf.pasm
        $(PARROT) -o bf.pbc bf.pasm
+
+bfc.pbc: bfc.pir
        $(PARROT) -o bfc.pbc bfc.pir
 
+bfco.pbc: bfco.pir
+       $(PARROT) -o bfco.pbc bfco.pir
+
 clean:
        $(RM_F) core *.pbc *~
 

Modified: trunk/languages/bf/bf.pasm
==============================================================================
--- trunk/languages/bf/bf.pasm  (original)
+++ trunk/languages/bf/bf.pasm  Fri May  6 13:29:48 2005
@@ -35,9 +35,9 @@
 
   # Initialise
 
-  set I0, 0          # Our PC
-  new P0, .PerlArray # Our memory
-  set I1, 0          # Our pointer
+  set I0, 0                      # Our program counter
+  new P0, .ResizableIntegerArray # Our memory
+  set I1, 0                      # Our pointer
   getstdin P30
 
   # The main interpreter loop

Copied: trunk/languages/bf/t/test_bfco.t (from rev 7994, 
trunk/languages/bf/t/test_bfc.t)
==============================================================================
--- trunk/languages/bf/t/test_bfc.t     (original)
+++ trunk/languages/bf/t/test_bfco.t    Fri May  6 13:29:48 2005
@@ -3,4 +3,4 @@
 # Test bf interpreter
 # Print TAP, Test Anything Protocol
 
-system( "../parrot -r bf/bfc.pbc bf/test.bf" );
+system( "../parrot -r bf/bfco.pbc bf/test.bf" );

Modified: trunk/languages/bf/test.bf
==============================================================================
--- trunk/languages/bf/test.bf  (original)
+++ trunk/languages/bf/test.bf  Fri May  6 13:29:48 2005
@@ -1,4 +1,4 @@
-Simple Perlstyle test script by Leon Brocard [EMAIL PROTECTED] DOT com
+Simple TAP style test script by Leon Brocard [EMAIL PROTECTED] DOT com
 +++++++++++++++++++++++++++++++++++++++++++++++++.
 ---.
 .

Reply via email to