Ch 7. Programming for Portability [ HP FORTRAN 77/iX Programmer's Guide ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Programmer's Guide
Chapter 7 Programming for Portability
This chapter describes how to port FORTRAN 77 programs from other systems
onto HP systems, and how to make new programs easily transportable
between HP systems. The suggestions in this chapter are derived from
basic concepts of structured programming and good programming practices.
However, because portability is the main topic of this chapter, some of
the suggestions might not result in run-time efficiency.
In general, methods for program portability fall into these five
categories:
* Restricting a program to features and statements that are a part
of the HP FORTRAN 77 standard.
* Making a program's data storage consistent and well-defined.
* Designing the source code so changes can be easily made to the
program.
* Avoiding unstructured programming constructs and features.
* Understanding operating system issues.
Using these methods does not guarantee that your program will compile,
link, and load successfully, and run on a new system exactly as it did on
the previous system. Differences in the machine architecture and the
operating system limit that possibility. However, following the methods
in this chapter will minimize the changes you will have to make to any HP
FORTRAN 77 program.
MPE/iX 5.0 Documentation