M. Sherman, Andy Hisgen, D. Lamb, Jonathan Rosenberg
{"title":"An Ada code generator for VAX 11/780 with Unix","authors":"M. Sherman, Andy Hisgen, D. Lamb, Jonathan Rosenberg","doi":"10.1145/948632.948645","DOIUrl":"https://doi.org/10.1145/948632.948645","url":null,"abstract":"This paper describes the final phase of an Ada compiler which produces code for the VAX 11/780 running the Unix operating system. Problems encountered in the implementation of subprogram calls, parameter passing, function return values, and exception handling and discussed and their solutions outlined.An underlying requirement for the code generator has been speed of implementation consistent with being a test bed for an Ada implementation. To accomplish this, a common model for the target environment has been assumed. The assumptions include: the VAX is a stack machine, a single address space is used, only the general case is implemented (no optimization of special cases), the hardware does as much work as possible, run time routines for lengthy code sequences are acceptable, and the conventions given in the VAX architecture, hardware, and software manuals are used.The code generator has been running on PDP-10 with Tops-10, producing a VAX assembly language source program as output. it has been available to local users since the beginning of 1980.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"212 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116521408","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Using Ada for industrial embedded microprocessor applications","authors":"A. G. Duncan, ZS. Hutchison","doi":"10.1145/948632.948637","DOIUrl":"https://doi.org/10.1145/948632.948637","url":null,"abstract":"This paper investigates the use of Ada as a high level implementation language for use on microprocessors embedded in industrial applications. Many of these applications use microprocessors with minimal hardware, that is, no hardware support for a stack and possibly not even a hardware clock. The use of minimal hardware is dictated by manufacturing economics. If one can save $.25 per unit over a run of 100,000 units, the total savings will be $25,000. An Ada implementation for such hardware will differ greatly from an implementation for a large mainframe. For instance, the storage allocator cannot blithely allocate space for variables in activation records. While these programs do not use many of Ada's powerful language features, the compiler must be able to generate highly optimized code for those parts of the language that are used.Our discussion of Ada centers around a typical application, a program to control an automatic oven. While this example is not one of our intended applications, it embodies most of the problems that we expect to find in practice. The example was inspired by McCracken's furnace control case study [1], written in PL/M, and provides a good opportunity for comparing Ada with PL/M.Applications like the oven control program require a number of sophisticated compiler optimizations. In addition to performing the usual common subexpression analysis, removal of redundant and unreachable code, and sophisticated peephole optimizations, the compiler must be capable of complete static allocation of all data and must be able to perform significant amounts of verification to simplify generated code, especially with respect to error checks and exception handling.Finally, we discuss some language problems and some programs that we feel are necessary for use of Ada in real-time and time-dependent situations.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"25 15","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"113962551","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"A multi-processing implementation-oriented formal definition of Ada in SEMANOL","authors":"F. Belz, E. Blum, D. Heimbigner","doi":"10.1145/948632.948661","DOIUrl":"https://doi.org/10.1145/948632.948661","url":null,"abstract":"A formal definition of the syntax and semantics of Preliminary Ada has been designed and partially implemented as a metaprogram in the SEMANOL system. The paper describes the design in detail and also presents excerpts of the actual SEMANOL metaprogram. Special attention is paid to the following aspects, lacking in the formal denotational definition of Ada: (1) formal definition of the connection between the concrete and abstract syntax of Ada, a necessary element of a formal definition if it is to be executable; (2) formal definition of the semantics of concurrency in Ada tasking; (3) formal definition of the semantics of exceptions and interrupts. The complete SEMANOL metaprogram will be an executable formal definition. In effect, it defines a multi-processing operating system which accepts an Ada program, as a set of compilation units, together with data, and causes the program to be executed in a concurrent mode in accordance with the semantics of tasks prescribed in the Ada reference manual and rationale.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"37 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125352454","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Generics and verification in Ada","authors":"W. D. Young, D. Good","doi":"10.1145/948632.948649","DOIUrl":"https://doi.org/10.1145/948632.948649","url":null,"abstract":"This paper explores the restrictions a mechanism in the style of the Ada generics facility would have to satisfy in order to be amenable to existing verification techniques. \"Generic verification\" is defined and defended as the appropriate goal for any such facility. Criteria are developed for generic verification to be possible and then Ada is evaluated with respect to these criteria. An example of the application of these techniques to an Ada unit is presented to show that generic verification is possible at least on a subclass of Ada generic units. Finally some potential applications of verified generic units are presented.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128560007","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Ada as a software transition tool","authors":"Gary L. Filipski, Donald R. Moore, John E. Newton","doi":"10.1145/948632.948657","DOIUrl":"https://doi.org/10.1145/948632.948657","url":null,"abstract":"Our agency plans to use the Ada programming language as a vehicle to transport a locally written inquiry system from Burroughs' equipment to another vendor's hardware. This is being done in the following manner. A bootstrap Ada translator has been written in Pascal to generate Burroughs' ALGOL. The Ada translator will be rewritten into Ada from ALGOL and executed on the current Burroughs' machine. When the new hardware is selected, the Ada translator will be retargeted to generate an efficient language on that machine, thereby transporting the inquiry system. The Ada translator will be discarded for an Ada compiler on the new system.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"4 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123752459","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"The design of a virtual machine for Ada","authors":"L. Groves, W. J. Rogers","doi":"10.1145/948632.948663","DOIUrl":"https://doi.org/10.1145/948632.948663","url":null,"abstract":"An implementation of Ada should be based on a machine-independent translator generating code for a Virtual Machine, which can be realised on a variety of machines. This approach, which leads to a high degree of compiler portability, has been very successful in a number of recent language implementation projects and is the approach which has been specified by the U. S. Army and Air Force in their requirements for Ada implementations.This paper discusses the rationale, requirements and design of such a Virtual Machine for Ada. The discussion concentrates on a number of fundamental areas in which problems arise: basic Virtual Machine structure, including storage structure and addressing; data storage and manipulation; flow of control; subprograms, blocks and exceptions; and task handling.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"24 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"133518180","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
Andy Hisgen, D. Lamb, Jonathan Rosenberg, M. Sherman
{"title":"A runtime representation for Ada variables and types","authors":"Andy Hisgen, D. Lamb, Jonathan Rosenberg, M. Sherman","doi":"10.1145/948632.948644","DOIUrl":"https://doi.org/10.1145/948632.948644","url":null,"abstract":"The type and subtype facilities of the Ada programming language permit some subtype information to be determined dynamically. This subtype information requires a runtime representation, and its dynamic nature influences the representation of variables. In this paper, we first review Ada's types and subtypes to identify some of those aspects which affect runtime representation. We then present the particular representation scheme which is used in the CHARRETTE Ada implementation. The scheme is straightforward and consistent in that a variable is represented the same way independently of where it appears, whether it is on the stack, on the heap, or a component of another variable. The design treats Ada's discriminants and discriminant constraints as a form of parameterized types, where the parameterization permits different instances of a type to have different variants and different sizes for array fields. Composition of such parameterized types is supported. We explain how several Ada operations are handled by our particular representation. We briefly discuss some alternative approaches to Ada representation, comparing them to our design.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"20 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122995935","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Algorithms for translating Ada multitasking","authors":"D. Stevenson","doi":"10.1145/948632.948655","DOIUrl":"https://doi.org/10.1145/948632.948655","url":null,"abstract":"Algorithms are presented for translating the multitasking constructs of Ada into the language Ada-M. The purpose of the translation is to study various implementations of Ada tasking and their relative problems, merits, and efficiencies. The multiprocessing constructs of Ada-M are lower level than those of Ada and, hence, flexible enough to permit development of a variety of compilation techniques for Ada tasking. Ada-M is sufficiently high-level, however, to permit the implementations to be developed quickly and Understandably. Requirements for data structures, scheduling, and other pertinant elements of Ada tasking compilation are identified by the translation.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"52 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122866270","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"On a formal model of the tasking concept in Ada","authors":"H. Løvengreen, D. Bjørner","doi":"10.1145/948632.948662","DOIUrl":"https://doi.org/10.1145/948632.948662","url":null,"abstract":"This paper describes the August 1980 state of the development of a formal model of the Ada tasking concept. The model is being developed at the Department of Computer Science, Technical university of Denmark in collaboration with the Danish Datamatics Centre as part of a full Ada compiler development project summarized below. The paper includes a short characterization of the (present) tasking concepts in Ada on which the model is based. The model description is rather informal to let you have a idea about the modelling principles. In appendix A a detailed example is given, unfolding the course of a rendezvous. The paper ends with a sketch of how an implementation can be systematically derived from the formal model.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"35 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116977104","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"The rendezvous and monitor concepts: is there an efficiency difference?","authors":"W. Eventoff, D. Harvey, R. J. Price","doi":"10.1145/948632.948654","DOIUrl":"https://doi.org/10.1145/948632.948654","url":null,"abstract":"The efficiency of Ada's rendezvous concept is compared with Concurrent Pascal's monitor concept. The differences between the two approaches, as well as a number of issues relating to their implementation, are presented. The results indicate that a concurrent programming language should provide both types of concepts.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"108 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1980-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"125233791","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}