Identifier Mapping

Since the Fortran produced by xc is Fortran 66, identifier names must be six characters or fewer, with no special characters such as underscores. SPP however, permits longer identifier names with the underscore character. The xc preprocessor maps such names by first removing underscores and using up to the first five characters of the identifier and the last character. The xc preprocessor writes a table of the original SPP identifiers and the mapped Fortran names at the end of the output Fortran as comments. If different SPP identifiers map to the same Fortran identifier, xc issues a warning that the identifier mapping is not unique and creates a unique identifier by replacing the last character with a digit in one case.

Generated with CERN WebMaker