jagomart
digital resources
picture1_Programming Pdf 182807 | Bcpl C


 124x       Filetype PDF       File size 0.06 MB       Source: www.cl.cam.ac.uk


File: Programming Pdf 182807 | Bcpl C
appendix to g topic iv g block structured procedural languages bcpl and c references chapters 1 to 3 of bcpl the language and its compiler by m richards and c ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
                      Appendix to
            g Topic IV                                     g
             Block-structured procedural languages
                               BCPL and C
      References:
        Chapters 1 to 3 of BCPL, the language and its compiler
          by M.Richards and C.Whitby-Strevens. CUP, 1979.
                                                                        / 1
                                  BCPL
             LET BCPL BE
               $( LET CPL = "Combined Programming Language"
                  WRITEF("Basic %S", CPL) $)
        Designed by Martin Richards in 1967 at MIT.
        Originally developed as a compiler-writing tool, has also
          proved useful as a systems-programming tool.
        BCPLadoptedmuchofthesyntactic richness of CPL;
          however, in order to achieve the efficiency necessary for
          systems-programming, its scale and complexity is far
          less than that of CPL.
        BCPLhasonlyonedatatype: thebit-pattern.
                                                                        / 2
                                  BCPLa
                                Philosophy
         Abstract machine.
          Themostimportantfeature is the store: a set of numbered
          storage cells arranged so that the numbers labelling
          adjacent cells differ by one.
          All storage cells are of the same size and each of them
          holds a value (= bit-pattern). A value is the only kind of
          object that can be manipulated directly in BCPL, and
          every variable and expression in that language will always
          evaluate to one of these.
        aNotes from Chapter 1 of BCPL, the language and its compiler by
      M.Richards and C.Whitby-Strevens. CUP, 1979.
                                                                        / 3
          Manybasicoperations on values are provided. One of
          these, of fundamental importance, is indirection. This
          operation takes one operand with is interpreted as an
          integer and yields the contents of the storage cell labelled
          by that integer.
         Data types.
          Thedesign of BCPL distinguishes between two classes of
          data types.
          1. Conceptual types. The kind of abstract object the
              programmer had in mind.
          2. Internal types. Basic types for modelling conceptual types.
          MuchoftheflavourofBCPListheresultoftheconscious
          design decision to provide only one internal type. The
                                                                        / 4
The words contained in this file might help you see if this file matches what you are looking for:

...Appendix to g topic iv block structured procedural languages bcpl and c references chapters of the language its compiler by m richards whitby strevens cup let be cpl combined programming writef basic s designed martin in at mit originally developed as a writing tool has also proved useful systems bcpladoptedmuchofthesyntactic richness however order achieve efciency necessary for scale complexity is far less than that bcplhasonlyonedatatype thebit pattern bcpla philosophy abstract machine themostimportantfeature store set numbered storage cells arranged so numbers labelling adjacent differ one all are same size each them holds value bit only kind object can manipulated directly every variable expression will always evaluate these anotes from chapter manybasicoperations on values provided fundamental importance indirection this operation takes operand with interpreted an integer yields contents cell labelled data types thedesign distinguishes between two classes conceptual programmer had...

no reviews yet
Please Login to review.