cintsys followup:

For Windows users you’ll actually need a different archive that includes Windows support. I’m using VisualC++ 2005 Express to build this out. You can find it @ http://msdn.microsoft.com/express . Don’t forget the servicepack 1 for Vista users.

Retrieve http://www.cl.cam.ac.uk/users/mr/BCPL/bcpl.zip

unzip the bcpl zip to somewhere eg (c:\proj\bcpl)

run the visual studio 2005 command promptcd to your project directory

edit the vc9env.bat file: search and replace distribution with where you put your zip file (proj)Next remove all the vcvar lines (since we invoked a vc capable shell we dont need to worry here)

vc9env.bat

nmake -f MakefileVC
It’ll compiler the interpeter, then it’ll compile all the bcpl bits, and dump you into a shell. From here you can type in ‘logout’ and cd into the bcplprogs directory and play around.
For example

cd ..\bcplprogs\maze

..\..\cintcode\cintsys.exe

then we’ll compile the maze program with:

bcpl maze.b to maze hdrs BCPLHDRS

finally we can run the maze program:

maze

C:\proj\BCPL\bcplprogs\maze>..\..\cintcode\cintsys
BCPL Cintcode System (25 Jan 2007)

0> bcpl maze.b to maze hdrs BCPLHDRS
BCPL (3 July 2007)

Code size = 1164 bytes

40> maze

… the program will print the maze, as it solves it…

screens will fly by.

4965>

From here you can play with the rest of the bcpl examples. You can exit the interpeter with either control C or logout. Currently there doesnt seem to be a cd command, so I just exit and move via the Vista command shell.

I hope this clears it up somewhat.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.