{"title":"Nesting in Ada programs is for the birds","authors":"L. Clarke, J. Wileden, A. Wolf","doi":"10.1145/948632.948651","DOIUrl":"https://doi.org/10.1145/948632.948651","url":null,"abstract":"Given a data abstraction construct like the Ada package and in light of current thoughts on programming methodology, we feel that nesting is an anachronism. In this paper we propose a nest-free program style for Ada that eschews nested program units and declarations within blocks and instead heavily utilizes packages and context specifications as mechanisms for controlling visibility. We view this proposal as a first step toward the development of programming methods that exploit the novel language features available in Ada. Consideration of this proposal's ramifications for data flow, control flow, and overall program structure substantiates our contention that a tree structure is seldom a natural representation of a program and that nesting therefore generally interferes with program development and readability.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"15 2 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":"126055180","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}
Jonathan Rosenberg, D. Lamb, Andy Hisgen, M. Sherman
{"title":"The Charrette Ada compiler","authors":"Jonathan Rosenberg, D. Lamb, Andy Hisgen, M. Sherman","doi":"10.1145/948632.948643","DOIUrl":"https://doi.org/10.1145/948632.948643","url":null,"abstract":"The Charrette Ada compiler is a working compiler for a substantial subset of the preliminary Ada language. The Ada source program is translated into an equivalent program in an intermediate implementation language. The result of the compilation process is machine language generated for this intermediate program.This paper provides a brief overview of the compiler with special attention given to the primary translation phase. Emphasis is placed on the transformation of Ada type and subtype information and the representation of objects. The translation of several interesting statement and expression forms is also outlined.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"17 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":"132970314","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}
Paul F. Albrecht, Philip E. Garrison, S. Graham, Robert H. Hyerle, Patricia Ip, B. Krieg-Brückner
{"title":"Source-to-source translation: Ada to Pascal and Pascal to Ada","authors":"Paul F. Albrecht, Philip E. Garrison, S. Graham, Robert H. Hyerle, Patricia Ip, B. Krieg-Brückner","doi":"10.1145/948632.948658","DOIUrl":"https://doi.org/10.1145/948632.948658","url":null,"abstract":"An implementation of translators between Ada and Pascal is described. The method used is to define subsets of each language between which there is a straightforward translation and to translate each source program to its respective sublanguage by program transformations. A common internal tree representation is used. The underlying organization of the translators is described, and some of the difficulties we have confronted and solves are discussed.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"12 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":"128187475","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 practical method of documenting and verifying Ada programs with packages","authors":"D. Luckham, W. Polak","doi":"10.1145/948632.948648","DOIUrl":"https://doi.org/10.1145/948632.948648","url":null,"abstract":"We present a method of formal specification of Ada programs containing packages. The method suggests concepts and guidelines useful for giving adequate informal documentation of packages by means of comments.The method depends on (1) the standard inductive assertion technique for subprograms, (2) the use of history sequences in assertions specifying the declaration and use of packages, and (3) the addition of three categories of specifications to Ada package declarations: (a) visible specifications, (b) boundary specifications, (c) internal specifications.Axioms and proof rules for the Ada package constructs (declaration, instantiation, and function and procedure call) are given in terms of history sequences and package specifications. These enable us to construct formal proofs of the correctness of Ada programs with packages. The axioms and proof rules are easy to implement in automated program checking systems. The use of history sequences in both in formal documentation and formal specifications and proofs is illustrated by examples.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"36 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":"126575809","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":"Towards a compiler front-end for Ada","authors":"G. Goos, G. Winterstein","doi":"10.1145/948632.948639","DOIUrl":"https://doi.org/10.1145/948632.948639","url":null,"abstract":"This paper discusses the current development of a compiler front-end for Ada at the University of Karlsruhe. The front-end is independent of the target-machine and will compile Ada into an intermediate language AIDA, essentially an attributed structure tree. The front-end is written in its own language using Ada-0 and LIS as preliminary compilers for the bootstrap. The compiler in its present form relies heavily on the formal definition of Ada which is under development at CII and IRIA.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"120 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":"124734967","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":"Effective machine descriptors for Ada","authors":"J. Bishop","doi":"10.1145/948632.948664","DOIUrl":"https://doi.org/10.1145/948632.948664","url":null,"abstract":"With the impetus provided by the U.S. Department of Defense's support for Ada, serious attention must once again be given to the design of computer architecture for the efficient execution of structured high level languages. Descriptors are one of the more theoretically popular features in a structured machine, yet in practice they do not come up to expectations. This paper examines the deficiencies of current descriptor implementations, and goes on to propose a new approach to descriptors. The design takes into account the relative usage of scalar and structured data in structured programs, and pays due attention to the efficient representation of descriptors as well as to packing, the question of uninitialised values and the contribution which the compiler makes to range and index checking.","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"12 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":"133030767","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":"TCOLAda and the \"middle end\" of the PQCC Ada compiler","authors":"Benjamin M. Brosgol","doi":"10.1145/948632.948646","DOIUrl":"https://doi.org/10.1145/948632.948646","url":null,"abstract":"A compiler is traditionally partitioned into a (mostly) machine independent Front End which performs lexical, syntactic, and semantic analysis, and a machine dependent Back End which performs optimization and code generation. In the Ada compiler being implemented at Carnegie-Mellon University in the PQCC project, it is useful to identify a set of phases occurring at the start of the Back End - i.e., \"Middle End\" - after semantic analysis but before optimization. These phases, known collectively as \"CWVM\" (an abbreviation for \"Compiler Writer's Virtual Machine\") make basic representational choices and reflect these in an expanded program tree. This paper describes both TCOLAda - the intermediate language interface produced by the Front End - and the phases comprising CWVM. TCOLAda is a graph structured high level representation of the source program which includes both the symbol table and the program tree. The CWVM phases perform transformations of the TCOLAda graph which fall into three categories: language oriented (e.g., expansion of checking for constructs such as array indexing), virtual machine oriented (e.g., translation of up-level addressing into \"display\" vector accesses), and actual machine oriented (e.g., expansion of component selection into address arithmetic).","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"22 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":"133983109","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":"Evolving toward Ada in real time systems","authors":"Lee MacLaren","doi":"10.1145/948632.948653","DOIUrl":"https://doi.org/10.1145/948632.948653","url":null,"abstract":"The Ada view of multitasking represents a radical departure from the traditional \"cyclic executive\" approach to real time operating systems. Since system designers must by necessity be conservative, it would be unrealistic to expect an abrupt change of this magnitude in engineering practice. Instead, this paper outlines a sequence of intermediate steps designed so that the advantages and familiar structures of cyclic systems may be retained, while the capabilities of Ada multitasking are gradually incorporated. A scale of increasing scheduling complexity provides the justification for this sequence. the discussion of each step then briefly mentions some of the related benefits and costs. The paper draws some conclusions about the use of Ada in real time systems.","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":"114619189","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":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","authors":"R. M. Graham, E. I. Organick, M. Shaw","doi":"10.1145/800004","DOIUrl":"https://doi.org/10.1145/800004","url":null,"abstract":"","PeriodicalId":238937,"journal":{"name":"Proceedings of the ACM-SIGPLAN symposium on Ada programming language","volume":"47 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124020181","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}