New topic: Diagnostics

johnl@ima.UUCP (Compilers moderator)
10 Apr 86 18:19:52 GMT

          From comp.compilers

Related articles
New topic: Diagnostics johnl@ima.UUCP (1986-04-10)
| List of all articles for this month |

Relay-Version: version B 2.10.2 9/12/84; site mit-prep.ARPA
Posting-Version: version B 2.10.2 9/18/84; site ima.UUCP
From: johnl@ima.UUCP (Compilers moderator)
Newsgroups: mod.compilers
Date: 10 Apr 86 18:19:52 GMT
Article-I.D.: ima.188
Posted: Thu Apr 10 13:19:52 1986
Date-Received: 11 Apr 86 12:56:26 GMT
Originally-from: ihnp4!vax135!petsd!moncol!john

If I may, I'd like to hear some of your feelings regarding compiler
diagnostics. Specifically, I would love to hear your feelings on what makes
a good diagnostic.

At the college where I work, some faculty members are reluctant to put
students on our UNIX systems since the standard compilers do not produce a
"listing" file. Additionally, they feel that what diagnostics are generated
are too cryptic for the average student.

On the other hand, the following was a compile-time error message I
received the other day from the COBOL compiler on our BTI 8000:

        ERROR.....The item declared as the file status item is not defined as an
          unsubscripted data item of alphanumeric category, or is not correctly
          qualified, or is defined in the File Section, or is not a 2-character item,
          or is defined in the Linkage Section but is not one of the items in the
          USING clause of the Procedure Division header nor is it subordinate to
          such an item.

(In other words, I forgot to declare the variable I said would be used to
return the status of file DEBT-FILE.)

Is this a good diagnostic? Personally, I feel it is overly wordy and may be
trying to be too comprehensive.

I imagine that there is a body of literature on this subject, but I would
really like to hear personal feelings.

[Disclaimer: Any opinions expressed are my own and may/do not reflect the
official opinions of Monmouth College.]

Name: John Ruschmeyer
US Mail: Monmouth College, W. Long Branch, NJ 07764
Phone: (201) 571-3451
UUCP: ...!vax135!petsd!moncol!john ...!princeton!moncol!john
Cogito, ergo sum, cogito.
Send submissions to: ima!compilers

ima is reachable as { ucbvax!cbosgd | ihnp4 | cca | bbncca | think |
uiucdcs | allegra | inmet | yale | harvard }!ima!...
Arpa mail may make it to ima!compilers@CCA-UNIX or ima!compilers@BBNCCA

Post a followup to this message

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