Postprocessor for structured FORTRAN

ACM-SE 14 Pub Date : 1976-04-22 DOI:10.1145/503561.503564
P. Hsia, F. Petry
{"title":"Postprocessor for structured FORTRAN","authors":"P. Hsia, F. Petry","doi":"10.1145/503561.503564","DOIUrl":null,"url":null,"abstract":"Structured FORTRAN is an extension of FORTRAN language with constructs like DO WHILE, CASE, IF THEN ELSE, etc., that will allow people to write structured programs in FORTRAN. Many preprocessors have been. developed for various versions of structured FORTRAN that will convert programs written in it into regular FORTRAN programs. The resulting programs are then compiled with the regular FORTRAN compiler. This arrangement prohibits teaching structured FORTRAN language to beginning students in computer science because the actual debugging is done on the converted program in regular FORTRAN and then re-converted back to structured FORTRAN. It also poses problems for running experiments comparing programming efforts between a structured FORTRAN language and regular FORTRAN.One solution to these difficulties is to develop a postprocessor. A postprocessor is a processor which will collect the information produced by regular FORTRAN compiler and correlate the information with the program written in structured FORTRAN. This way, by appending a preprocessor and a postprocessor to structured FORTRAN, programmers will not be aware of the intermediate conversion steps that took place during the compilation of their programs. This postprocessor will also eliminate the need of a new structured FORTRAN compiler since the combined function of preprocessor, FORTRAN compiler and postprocessor exactly carries out the functions of a structured FORTRAN compiler.A general design of a postprocessor is described in this paper. Its impact on the existing FORTRAN compiler is kept to a minimum and its communication with the preprocessor is kept simple. The actual implementation will differ for each FORTRAN compiler due to the very fact that compilers are machine dependent. A set of proposed uses of the postprocessor will also be summarized in the paper.","PeriodicalId":151957,"journal":{"name":"ACM-SE 14","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1976-04-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 14","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/503561.503564","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Structured FORTRAN is an extension of FORTRAN language with constructs like DO WHILE, CASE, IF THEN ELSE, etc., that will allow people to write structured programs in FORTRAN. Many preprocessors have been. developed for various versions of structured FORTRAN that will convert programs written in it into regular FORTRAN programs. The resulting programs are then compiled with the regular FORTRAN compiler. This arrangement prohibits teaching structured FORTRAN language to beginning students in computer science because the actual debugging is done on the converted program in regular FORTRAN and then re-converted back to structured FORTRAN. It also poses problems for running experiments comparing programming efforts between a structured FORTRAN language and regular FORTRAN.One solution to these difficulties is to develop a postprocessor. A postprocessor is a processor which will collect the information produced by regular FORTRAN compiler and correlate the information with the program written in structured FORTRAN. This way, by appending a preprocessor and a postprocessor to structured FORTRAN, programmers will not be aware of the intermediate conversion steps that took place during the compilation of their programs. This postprocessor will also eliminate the need of a new structured FORTRAN compiler since the combined function of preprocessor, FORTRAN compiler and postprocessor exactly carries out the functions of a structured FORTRAN compiler.A general design of a postprocessor is described in this paper. Its impact on the existing FORTRAN compiler is kept to a minimum and its communication with the preprocessor is kept simple. The actual implementation will differ for each FORTRAN compiler due to the very fact that compilers are machine dependent. A set of proposed uses of the postprocessor will also be summarized in the paper.
结构化FORTRAN的后处理器
结构化FORTRAN是FORTRAN语言的扩展,具有DO WHILE, CASE, IF THEN ELSE等结构,允许人们用FORTRAN编写结构化程序。许多预处理器已经。为各种版本的结构化FORTRAN开发的,可以将用它编写的程序转换为常规FORTRAN程序。然后用常规的FORTRAN编译器编译生成的程序。这种安排禁止向计算机科学的初学者教授结构化FORTRAN语言,因为实际的调试是在用常规FORTRAN转换的程序上完成的,然后再重新转换回结构化FORTRAN。这也给在结构化FORTRAN语言和常规FORTRAN语言之间进行比较编程工作的实验带来了问题。解决这些困难的一种方法是开发后处理程序。后处理器是一种处理器,它将收集常规FORTRAN编译器产生的信息,并将这些信息与用结构化FORTRAN编写的程序相关联。这样,通过在结构化FORTRAN中添加预处理器和后处理器,程序员将不会意识到在程序编译过程中发生的中间转换步骤。由于预处理器、FORTRAN编译器和后处理器的组合功能准确地执行了结构化FORTRAN编译器的功能,因此该后处理器也将消除对新的结构化FORTRAN编译器的需要。本文描述了一个后处理器的总体设计。它对现有FORTRAN编译器的影响保持在最小,并且它与预处理器的通信保持简单。由于编译器是机器相关的,因此每个FORTRAN编译器的实际实现将有所不同。本文还将总结后处理程序的一组建议用途。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信