Download Absoft Pro Fortran User Guide

Transcript
Using the Compilers
57
Escape Sequences in Strings (-YCSLASH=1)
If the -YCSLASH=1 option is turned on, the compiler will transform the following escape
sequences marked with a ‘\’ embedded in character constants:
\a
\b
\f
\n
\r
\t
\v
\xh[h]
\o[o[o]]
\\
Audible Alarm (BEL, ASCII 07)
Backspace (BS, ASCII 8)
Form Feed (FF, ASCII 12)
Newline (LF, ASCII 10)
Carriage Return (CR, ASCII 13)
Horizontal Tab (HT, ASCII 09)
Vertical Tab (VT, ASCII 11)
Hexidecimal, up to 2 digits
Octal number, up to 3 digits
Backslash
The default is -YCSLASH=0.
No Dot for Percent (-YNDFP=1)
This option instructs the compiler to disallow the use of a ‘.’ (period) as a structure field
component dereference operator. The default is to allow both ‘%’ (percent), which is the
Fortran 90/95 standard, and a period which is typically used with DEC style RECORD
declarations. The use of a period may cause certain Fortran 90/95 conforming programs
to be mis-interpreted (a period is used to delineate user defined operators and some
intrinsic operators). The default is -YNDFP=0. This switch implements Fortran 90/95
standard parsing for structure component referencing.
MS Fortran 77 Directives (-YMS7D)
The -YMS7D option causes the compiler to recognize Microsoft Fortran 77 style directives
in the form of $directive where the dollar-sign character is in column one of the source
file. directive must be from the set of supported MS directives.
Miscellaneous - F95 Options
These options are used to control the global names of COMMON blocks. Their primary use is
for managing the character case and decoration applied to COMMON block names when
interfacing with external procedures written in FORTRAN 77 or the C Programming
Language.
COMMON Block Name Prefix (-YCOM_PFX=string)
The -YCOM_PFX option can be used to prepend a user specified string to the external
representation of COMMON block names.
COMMON Block Name Suffix (-YCOM_SFX=string)
The -YCOM_SFX option can be used to append a user-specified string to the external
representation of COMMON block names.
Fortran User Guide