How BCPL Evolved from CPL
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Latest Results from the Procedure Calling Test, Ackermann's Function
Latest results from the procedure calling test, Ackermann’s function B A WICHMANN National Physical Laboratory, Teddington, Middlesex Division of Information Technology and Computing March 1982 Abstract Ackermann’s function has been used to measure the procedure calling over- head in languages which support recursion. Two papers have been written on this which are reproduced1 in this report. Results from further measurements are in- cluded in this report together with comments on the data obtained and codings of the test in Ada and Basic. 1 INTRODUCTION In spite of the two publications on the use of Ackermann’s Function [1, 2] as a mea- sure of the procedure-calling efficiency of programming languages, there is still some interest in the topic. It is an easy test to perform and the large number of results ob- tained means that an implementation can be compared with many other systems. The purpose of this report is to provide a listing of all the results obtained to date and to show their relationship. Few modern languages do not provide recursion and hence the test is appropriate for measuring the overheads of procedure calls in most cases. Ackermann’s function is a small recursive function listed on page 2 of [1] in Al- gol 60. Although of no particular interest in itself, the function does perform other operations common to much systems programming (testing for zero, incrementing and decrementing integers). The function has two parameters M and N, the test being for (3, N) with N in the range 1 to 6. Like all tests, the interpretation of the results is not without difficulty. -
ALGOL 60 Programming on the Decsystem 10.Pdf
La Trobe University DEPARTMENT OF MATHEMATICS ALGOL 60 Programming on the DECSystem 10 David Woodhouse Revised, August 1975 MELBOURNE, AUSTRALIA ALGOL 60 Programming on the DECSystem 10 David Woodhouse Revised, August 1975 CE) David Woodhouse National Library of Australia card number and ISBN. ISBN 0 85816 066 8 INTRODUCTION This text is intended as a complete primer on ALGOL 60 programming. It refers specifically to Version 4 of the DECSystem 10 implementation. However, it avoids idiosyncracies as far as possible, and so should be useful in learning the language on other machines. The few features in the DEC ALGOL manual which are not mentioned here should not be needed until the student is sufficiently advanced to be using this text for reference only. Exercises at the end of each chapter illustrate the concepts introduced therein, and full solutions are given. I should like to thank Mrs. K. Martin and Mrs. M. Wallis for their patient and careful typing. D. Woodhouse, February, 1975. CONTENTS Chapter 1 : High-level languages 1 Chapter 2: Languagt! struct.ure c.f ALGOL 6n 3 Chapter 3: Statemp.nts: the se'1tences {'\f the language 11 Chapter 4: 3tandard functions 19 Chapter 5: Input an~ Outp~t 21 Chapter 6: l>rray~ 31 Chapter 7 : For ane! ~hil~ statements 34 Chapter 8: Blocks anr! ',: ock sc rll,~ turr. 38 Chapter 9: PrOCe(:l1-:-~S 42 Chapter 10: Strin2 vp·jaLlps 60 Chapter 11: Own v~rj;lI'.i..es clOd s~itc.hef, 64 Chapter 12: Running ~nd ,;ebllggi"1g 67 Bibliography 70 Solutions to Exercises 71 Appendix 1 : Backus NOlUlaj F\:q'm 86 Appendix 2 : ALGuL-like languages 88 Appenclix 3. -
A History of C++: 1979− 1991
A History of C++: 1979−1991 Bjarne Stroustrup AT&T Bell Laboratories Murray Hill, New Jersey 07974 ABSTRACT This paper outlines the history of the C++ programming language. The emphasis is on the ideas, constraints, and people that shaped the language, rather than the minutiae of language features. Key design decisions relating to language features are discussed, but the focus is on the overall design goals and practical constraints. The evolution of C++ is traced from C with Classes to the current ANSI and ISO standards work and the explosion of use, interest, commercial activity, compilers, tools, environments, and libraries. 1 Introduction C++ was designed to provide Simula’s facilities for program organization together with C’s effi- ciency and flexibility for systems programming. It was intended to deliver that to real projects within half a year of the idea. It succeeded. At the time, I realized neither the modesty nor the preposterousness of that goal. The goal was modest in that it did not involve innovation, and preposterous in both its time scale and its Draco- nian demands on efficiency and flexibility. While a modest amount of innovation did emerge over the years, efficiency and flexibility have been maintained without compromise. While the goals for C++ have been refined, elaborated, and made more explicit over the years, C++ as used today directly reflects its original aims. This paper is organized in roughly chronological order: §2 C with Classes: 1979– 1983. This section describes the fundamental design decisions for C++ as they were made for C++’s immediate predecessor. §3 From C with Classes to C++: 1982– 1985. -
The BCPL Cintsys and Cintpos User Guide by Martin Richards [email protected]
The BCPL Cintsys and Cintpos User Guide by Martin Richards [email protected] http://www.cl.cam.ac.uk/users/mr10/ Computer Laboratory University of Cambridge Revision date: Thu 19 Aug 16:16:54 BST 2021 Abstract BCPL is a simple systems programming language with a small fast compiler which is easily ported to new machines. The language was first implemented in 1967 and has been in continuous use since then. It is a typeless and provides machine independent pointer arithmetic allowing a simple way to represent vectors and structures. BCPL functions are recursive and variadic but, like C, do not allow dynamic free variables, and so can be represented by just their entry addresses. There is no built-in garbage collector and all input-output is done using library calls. This document describes both the single threaded BCPL Cintcode System (called Cintsys) and the Cintcode version of the Tripos portable operating system (called Cintpos). It gives a definition of the standard BCPL language including the recently added features such as floating point expressions and constructs involving operators such as <> and op:=. This manual describes an extended version of BCPL that include some of the features of MCPL, mainly concerning the pattern matching used in function definitions. This version can be compiled using the mbcpl command. This manual also describes the standard library and running environment. The native code version of the system based on Sial and the Cintpos portable operating system are also described. Installation instructions are included. Since May 2013, the standard BCPL distribution supports both 32 and 64 bit Cintcode versions. -
ATLAS HL-LHC Computing Conceptual Design Report
ATLAS HL-LHC Computing Conceptual Design Report CERN-LHCC-2020-015 / LHCC-G-178 10/11/2020 Reference: Created: 1st May 2020 Last modified: 2nd November 2020 Prepared by: The ATLAS Collaboration c 2020 CERN for the benefit of the ATLAS Collaboration. Reproduction of this article or parts of it is allowed as specified in the CC-BY-4.0 license. Contents Contents Contents 1 Overview 1 2 Core Software 3 2.1 Framework components3 2.2 Event Data Model5 2.3 I/O system5 2.4 Summary 5 3 Detector Description5 3.1 GeoModel: Geometry kernel classes for detector description6 3.2 The Streamlined Detector Description Workflow6 4 Event Generators6 4.1 Ongoing developments with an impact for Run 3 and Run 47 4.2 Summary and R&D goals7 5 Simulation and Digitisation8 5.1 Introduction8 5.2 Run 3 Detector Simulation Strategy8 5.3 Run 3 Digitization Strategy9 5.4 Run 4 R&D9 5.5 Trigger simulation 11 6 Reconstruction 12 6.1 The Tracker Upgrade and the Fast Track Reconstruction Strategy for Phase-II 13 6.2 The ATLAS Reconstruction Software Upgrade using ACTS 14 6.3 Optimising Reconstruction for Phase-II Levels of Pile-up 15 6.4 Streamlining Reconstruction for Unconventional Signatures of New Physics 15 6.5 Prospects for the technical Performance of the Phase-II Reconstruction 16 6.6 Algorithm R&D, machine learning and accelerators 16 7 Visualization 17 8 Analysis model 18 8.1 Introduction 18 8.2 Analysis Data Formats 18 8.3 Analysis workflows 19 8.4 Integration with machine learning 21 8.5 Analysis Preservation, Reusability and Data Products 22 8.6 Non-standard workflows -
The BCPL Reference Manual
MASSACHUSETTS INSTITUTE OF TECHNOLOGY PROJECT MAC Memorandum-M-352 July 21, 1967 To: Project MAC Participants From: Martin Richards Subject: The BCPL Reference Manual ABSTRACT BCPL is a simple recursive programming language designed for compiler writing and system programming: it was derived from true CPL (Combined Programming Language) by removing those features of the full language which make compilation difficult namely, the type and mode matching rules and the variety of definition structures with their associated scope rules. 0.0 Index 1.0 Introduction 2.0 BCPL Syntax 2.1 Hardware Syntax 2.1:1 BCPL Canonical Symbols 2.1.2 Hardware Conventions and Preprocessor Rules 2.2 Canonical Syntax 3.0 Data Items 3.1 Rvalues, Lvalues and Data Items 3.2 Types 4.0 Primary Expressions 4.1 Names 4.2 String Constants 4.3 Numerical Constants 4.4 True and False 4.5 Bracketted Expressions 4.6 Result Blocks 4.7 Vector Applications 4.8 Function Applications 4.9 Lv Expressions 4.10 Rv Expressions 5.0 Compound Expressions 5.1 Arithmetic Expressions 5.2 Relational Expressions 5.3 Shift Expressions 5.4 Logical Expressions 5.5 Conditional Expressions 6.0 Commands 6.1 Assignment Commands 6.2 Simple Assignment Commands 6.3 Routine Commands 6.4 Labelled Commands 6.5 Goto Commands 6.6 If Commands 6.7 Unless Commands 6.8 While Commands 6.9 Until Commands 6.10 Test Commands 6.11 Repeated Commands 6.12 For Commands 6.13 Break Commands 6.14 Finish Commands 6.15 Return Commands 6.16 Resultis Commands 6.17 Switchon Commands 6.18 Blocks 7.0 Definitions 7.1 Scope Rules 7.2 Space Allocation and Extent of Data Items 7.3 Global Declarations 7.4 Manifest Declarations 7.5 Simple Definitions 7.6 Vector Definitions 7.7 Function Definitions 7.8 Routine Definitions 7.9 Simultaneous Definitions 8.0 Example Program 1.0 Introduction 1. -
Ferranti Atlas 1 & 2: List of References
Version 2, January 2012 F5X5 Ferranti Atlas 1 & 2: List of References A. Documents in the ICL Archive at the Science Museum, London and Wroughton. Numbers in parentheses are the Archive references. 1. ICT ATLAS 1 Computer: Programming Language for ATLAS Basic Language (ABL), 1961. (38/46) 2. The Atlas Drum System, provisional description. (38/60-1) 3. The Atlas Core Store & Working Store, provisional description. (38/60-2) 4. The Atlas 1 Computer System Operator’s Manual Part 1 - Central Machine and Supervisor. (38/60-3) 5. The Atlas 1 Computer System Operator’s Manual Part 2 - Peripheral Equipments. (38/60-4) 6. Features and Facilities of Atlas Basic Language - ABL for the Atlas 1 System. (38/60-5) 7. Preparing a Complete Program for Atlas 1. (38/60-6) 8. The Atlas Supervisor, by T. Kilburn, R.B. Payne, and D.J. Howarth (reprinted from "Computers - Key to Total Systems Control"). (38/60-7). See also ref. 61(a) below. 9. Printout from Atlas at Manchester University, 28.3.67 at 19.18 hrs. (38/60-8) 10. Atlas Computer - small brochure (No 1 in a series of Computer System Profiles), 1962. (38/60-13 and 38/72-1) 11. An Appraisal of the Atlas Supervisor D.Morris, F.H.Sumner, and M.T.Wyld, 1967. (38/61-1). See also ref. 61(b) below. 12. Atlas 1 Customer’s Installation Responsibilities, 1963. (38/61-2) 13. ICT Atlas General Survey Program, 1965. (38/61-3) 14. Ferranti Atlas Sales brochure, 1962. (38/61-4) 15. Atlas - Technical description: 6 typewritten foolscap sheets, 1962. -
The Development of the C Languageߤ
The Development of the C Languageߤ Dennis M. Ritchie Bell Labs/Lucent Technologies Murray Hill, NJ 07974 USA [email protected] ABSTRACT The C programming language was devised in the early 1970s as a system implementation language for the nascent Unix operating system. Derived from the typeless language BCPL, it evolved a type structure; created on a tiny machine as a tool to improve a meager programming environment, it has become one of the dominant languages of today. This paper studies its evolution. Introduction This paper is about the development of the C programming language, the influences on it, and the conditions under which it was created. For the sake of brevity, I omit full descriptions of C itself, its parent B [Johnson 73] and its grandparent BCPL [Richards 79], and instead concentrate on characteristic elements of each language and how they evolved. C came into being in the years 1969-1973, in parallel with the early development of the Unix operating system; the most creative period occurred during 1972. Another spate of changes peaked between 1977 and 1979, when portability of the Unix system was being demonstrated. In the middle of this second period, the first widely available description of the language appeared: The C Programming Language, often called the ‘white book’ or ‘K&R’ [Kernighan 78]. Finally, in the middle 1980s, the language was officially standardized by the ANSI X3J11 committee, which made further changes. Until the early 1980s, although compilers existed for a variety of machine architectures and operating systems, the language was almost exclusively associated with Unix; more recently, its use has spread much more widely, and today it is among the lan- guages most commonly used throughout the computer industry. -
Tom Kilburn: a Tale of Five Computers
Tom Kilburn: A tale of five computers One of the pre-eminent figures in the early history of computer design was Tom Kilburn. Over the course of some thirty years, he made significant contributions to the development of five important computers. Although a natural team leader possessed of a somewhat dominating personality, who inspired in those who worked closely with him great loyalty and affection, Kilburn was, on casual acquaintance, a self- contained man who chose his words with care. As F.C. Williams put it “What you must always remember is that Tom is a Yorkshireman.”1 Early Days Tom Kilburn was born on the 11th August 1921, near Dewsbury in West Yorkshire, England. His father, John William Kilburn, was a statistical clerk who rose to become a company secretary.1 Tom had a somewhat specialized education at Wheelwright Grammar School having been permitted by his headmaster to study almost nothing else from around the age of 14. It was hardly surprising therefore he emerged from school as something of a mathematical specialist. In 1940, Kilburn went up to Sidney Sussex College, Cambridge, with State, Dewsbury Major, and Minor Open Scholarships. Wartime courses at Cambridge were somewhat truncated and in 1942, Kilburn graduated with First Class Honors in Part I of the Mathematical Tripos and in the preliminary examination for Part II. During the Second World War, many Cambridge mathematics dons were absent from the university serving at Bletchley Park and elsewhere. In spite of this, there remained a lively mathematical community in which Kilburn played a full part part. -
The C Language the C Language C History BCPL C History C History
The C Language C History Currently, the most Developed between 1969 and 1973 along The C Language commonly-used language for with Unix embedded systems Due mostly to Dennis Ritchie COMS W4995-02 ”High-level assembly” Designed for systems programming Prof. Stephen A. Edwards Very portable: compilers • Fall 2002 exist for virtually every Operating systems Columbia University processor • Utility programs Department of Computer Science Easy-to-understand • Compilers compilation • Filters Produces efficient code Fairly concise Evolved from B, which evolved from BCPL BCPL C History C History Martin Richards, Cambridge, 1967 Original machine (DEC Many language features designed to reduce memory PDP-11) was very small: Typeless • Forward declarations required for everything • Everything a machine word (n-bit integer) 24K bytes of memory, 12K • Designed to work in one pass: must know everything used for operating system • Pointers (addresses) and integers identical • Written when computers No function nesting Memory: undifferentiated array of words were big, capital equipment PDP-11 was byte-addressed Natural model for word-addressed machines Group would get one, • Now standard Local variables depend on frame-pointer-relative develop new language, OS addressing: no dynamically-sized automatic objects • Meant BCPL’s word-based model was insufficient Strings awkward: Routines expand and pack bytes to/from word arrays Euclid’s Algorithm in C Euclid’s Algorithm in C Euclid on the PDP-11 .globl gcd GPRs: r0–r7 int gcd(int m, int n ) “New syle” function int gcd(int m, int n ) Automatic variable .text r7=PC, r6=SP, r5=FP { declaration lists { Allocated on stack gcd: int r; number and type of int r; when function jsr r5, rsave Save SP in FP arguments. -
Martin Marietta Corporation Denver Division Box 179, Denver, Colorado
,I \~1'I I7- r \ ?@A r 'h .. ,l J I V MC R-70-327 J DEVELOPMENT OF A KSC TEST AND FLIGHT- ENGINEERING ORIENTED COMPUTER LANGUAGE - PHASE I REPORT I , . C. W. Case E. L. Kinney J. Gyure zy 18 M Martin Marietta Corporation Denver Division Box 179, Denver, Colorado. 80201 August 1970 Interim Reportfor Period July-August 1970 Prepared for National Aeronautics and Space Administration John F. Kennedy Space Center .. N72-15169 ;(NASA-CH-1 2 5 2 6 0 ) DEVgLOPSPNN'I OF A KSC TEST AND ELIGHT ENGINEERING OlIENTLD COMPUTEA Jul. - LANGUAGE, PHASE 1 Interim Report, Unclas 1970 C.W. Case, et al (ilartin Auq. G3/08 12744 1970 7. p CSCL 09B \Parietta Corp.) .Auq. I Reproduced by NATIONAL TECHNICAL INFORMATION SERVICE U S Department of Commerce Springfield VA 22151 .- b; s6l o 9 N 0 T I C E THIS DOCUMENT HAS BEEN REPRODUCED FROM THE BEST COPY FURNISHED US BY THE SPONSOR- ING AGENCY. ALTHOUGH IT IS RECOGNIZED THAT CERTAIN PORTIONS ARE ILLEGIBLE, IT IS BEING RELEASED IN THE INTEREST OF MAK- ING AVAILABLE AS MUCH INFORMATION AS POSSIBLE. PREFACE This report contains the results of the Phase I effort of the Development of a KSC Test and Flight Engineer Oriented Computer Language Study. This'Phase I effort was directed at the examination of existing related languages and their appli- cations./ , K * -1W. Three languages, ATOLL, ATLAS and CLASP were examined in detail and their characteristics are documented in a language characteristics table. A general review of several other test oriented languages was undertaken. -
Dynamic Storage Allocation in the Atlas Computer, Including an Automatic Use of a Backing Store
The output of AMCAP consists of binary machine code lines gramming l~esearch Group of the Astro-Electronics Divi- interspersed with modification lines. The modification lines sion of Radio Corporation of America for their support are binary encoded and represent a compromise between and in particular to Roy Heistand for his contributions to the expense of storing and handling a large code and the the design and implementation of A~cAP. expense of interpretively performing the modifications. Parts of the ACSI-MATIC Programming System in- REFERENCES cluding parts of AMCaP have been coded for the 1. GUP,.K, H., MINKER, J. The design and simulation of an in- MOBiDIC-A and Sylvania 9400 computers; some of the code formation processing system. J. ACM 8, 2 (Apr. 1961), 260. has been debugged on the MOBiDIc-A. It is expected that 2. MILLER, a., MINKER, J., REED, W. G., SI-IINDLE, W. E. A an initial system will be operating by the end of summer. multi-level file structure for information processing. Proc. Acknowledgment is given to the members of the Pro- Western Joint Comput. Conf., Apr. 1960. Dynamic Storage Allocation in the Atlas Computer, Including an Automatic Use of a Backing Store John Fotheringham Ferranti Electric, Inc., Plainview, New York 1. Introduction characters within a word for certain special functions, and the leading digit of these three is also used for identifying This paper is concerned with the method of address in- the half-word operand for 24-bit functions such as index terpretation in the Atlas computer. The Atlas has been register operations.