Re: Why is Cobol ignored in compiler textbooks?

jrbd@craycos.com (James Davies)
Thu, 23 Apr 1992 19:32:00 GMT

          From comp.compilers

Related articles
Why is Cobol ignored in compiler textbooks? tfj@cix.compulink.co.uk (Trevor Jenkins) (1992-04-20)
Re: Why is Cobol ignored in compiler textbooks? nickh@CS.CMU.EDU (1992-04-21)
Re: Why is Cobol ignored in compiler textbooks? preston@dawn.cs.rice.edu (1992-04-22)
Re: Why is Cobol ignored in compiler textbooks? geoff@world.std.com (1992-04-22)
Re: Why is Cobol ignored in compiler textbooks? williams@herky.cs.uiowa.edu (1992-04-23)
Re: Why is Cobol ignored in compiler textbooks? jrbd@craycos.com (1992-04-23)
Re: Why is Cobol ignored in compiler textbooks? drw@nevanlinna.mit.edu (1992-04-24)
Re: Why is Cobol ignored in compiler textbooks? md@sco.COM (1992-04-27)
Re: Why is Cobol ignored in compiler textbooks? ejp@bohra.cpg.oz.au (1992-04-27)
Re: Why is Cobol ignored in compiler textbooks? meissner@osf.org (1992-04-28)
| List of all articles for this month |
Newsgroups: comp.compilers
From: jrbd@craycos.com (James Davies)
Keywords: Cobol, question
Organization: Cray Computer Corporation
References: 92-04-093 92-04-099
Date: Thu, 23 Apr 1992 19:32:00 GMT

preston@dawn.cs.rice.edu (Preston Briggs) writes:
>[how to handle PERFORM which allows the same paragraph to be executed
>nline or as a subroutine]


My approach would be to treat the paragraphs as basic blocks unless they
are performed, and to make separate copies of any chains that are
performed. (Recall that Cobol allows performing a range of paragraphs as
well as one at a time, so the linkage code would have to account for this;
also, I believe that branches out of performed sections are allowed).


I think some of the bigger tasks in implementing a Cobol compiler would be
handling sorting, searching, indexed files, BCD arithmetic, and picture
conversion. These are all basically library problems, which aren't
normally handled in compiler books for ANY language (try finding something
in one of the dragon books on evaluating trig functions or format
conversion).
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.