home *** CD-ROM | disk | FTP | other *** search
-
-
- Comments on Porting
- Benchmark
- by WIS JPMO
- to DEC Ada
-
- Tool 37
- October 4, 1985
-
-
- COMPILATION
- -----------
- A VMS command file was created from the ordered list of compilation
- units provided in BENCHSRC.DIS.
-
- We were able to recompile BENCHMARK with minor changes in two files.
- Compilation errors occurred due to packages that were "withed" but
- not delivered with the source code, syntax errors in declarations
- and compiler specific pragmas. The following files were changed on
- the lines indicated.
-
- 1. In file COMPM50.TXT
- lines 6, 7, 8, 9, 10, 20, 21, 22, 23 and 24 all references
- to library units COMPK26 through COMPK50 were deleted because
- they were not included in the source code and no reference
- was made to them in the documentation. It is possible that
- these library units were part of another tool produced by
- the same developer.
-
- lines 15, 16, 17 and 18 were part of a continuous addition
- assignment to variable "L". Compilation errors occurred
- because each line ended ambiguously without a "+" sign to
- continue the addition statement. A "+" sign was added to the
- end of each line.
-
- 2. In file IMP.TXT
- lines 13, 14, 15, 16, 17, 18, 19 and 20 all "suppress"
- pragma references were deleted because inclusion of
- "pragma suppress" produced compiler errors stating that
- "pragma suppress" was not supported by the implementation.
-
- lines 85 and 86 produced compilation errors due to references
- made to "direct_io.count", without first instantiating DIRECT_IO.
- These errors were resolved by including an instantiation
- of DIRECT_IO and using this instantiation to reference "count".
-
- lines 86 and 87, which contained "put" statements, would not
- compile on the DEC compiler. The parameters within the put
- statements were "direct_io.count'last" and "text_io.count'last"
- which both produced a value of type "direct_io.count" and
- "text_io.count" respectfully. These parameters required the
- use of the generic package INTEGER_IO rather than TEXT_IO,
- because they were not of type "character" or "string". Rather,
- they were a discrete type of type "count". However, INTEGER_IO
- had been instantiated with type "integer". Further instantiations
- were added of type "direct_io.count" and "text_io.count".
- These instantiations permitted the code to compile. It was
- also noted that the parameters of the "put" statement could
- have first been converted to type "integer", thereby avoiding
- the additional instantiations.
-
- These errors may not have been recognized by the unvalidated
- compiler on which the tool was developed.
-
- EXECUTION
- ---------
- We were able to execute the BENCHMARK and it appeared to be in workable
- condition.
-
-