Code Monkey home page Code Monkey logo

berkeley_pascal's Introduction

Build status

Berkeley Pascal

Berkeley Pascal was developed within the Computer Science Division; Department of Electrical Engineering and Computer Science; University of California, Berkeley initial by Ken Thompson, then by William N. Joy, Susan L. Graham and Charles B. Haley. It was initially designed for interactive instructional use on the PDP/11 and VAX/11 computers by Ken Thompson and developed further with extensive modifications and additions by William Joy, Charles Haley and faculty advisor Susan L. Graham. The interpeter was later rewritten for the VAX 11/780 by Kirk McKusick and then converted into C using libpc by Kirk later in 1981.

Interpretive P-code is produced, providing fast translation at the expense of slower execution speed. The interpreter runs at a fraction of the speed of equivalent compiled C code, with this fraction varying from 1/5 to 1/15.

This project is an investigation into retargeting to modern hosts, with the intention of exploring use within embedded systems/applications, plus for general nostalgia.

The original source is from the 4th series of Berkeley Distributions, namely BSD4.3 and BSD4.4-Lite.

Source Roadmap:

pi -          Pascal interpreter.

px -          Pascal byte-code compiler.

pdx -         Pascal debugger.

doc -         Reference and design documents.

src -         Command source for px, pi and pdx.

libpc -       Pascal run-time library.

pmerge -      Pascal file merger.

libcompat -   Compatibility library, implements omitted functionality assumed to be available.

tstpx -       Test cases and associated expected results.

byacc -       Berkeley yacc, is a LALR(1) parser generator.

eyacc -       Modified yacc allowing much improved error recovery; needed by the Pascal parser.

ex -          Stream editor.

contrib/flex - Flex (Fast Lexical analyzer generator) 2.5.2.

contrib/libregex - Henry Spencer's regex package; required by Flex.

Source Reference:

The following source modules are included for reference:

pxref -       Cross-reference generator

pxp -         Pascal execution profiler.

pix -         Pascal interpreter and executor.

pc -          Pascal compiler; requires the Berkeley Portable C Compiler (pcc) infrastructure.

pcextern -    External symbol stabs generator.

px_header -   libexec loader.

Install

Initial port has been retargeted to Windows (32-bit), using either Open Watcom, Microsoft Visual C/C++ or MingW64 (32-bit). Additional targets, including Linux are roadmapped, yet shall be simplier once the initial retargeting.

  • Install the gnuwin32 tool set or similar; for example Source, http://unxutils.sourceforge.net/.

  • If you dont have perl available, download and install; ActivePerl is one of the better options otherwise Strawberry.

  • Run the <makelib.pl> perl script by typing:

    o MSVC 2008 or greater

    $ perl makelib.pl --busybox=./support/busybox vc[2015|2017|2019]

    o Open Watcom

    $ perl makelib.pl --busybox=./support/busybox owc[19|20]

    o MinGW64-W64 (32-bit)

    $ perl makelib.pl --busybox=./support/busybox mingw32

  • Build the entire tree with:

    $ gmake debug|release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.