The FORTRAN77 compiler on the HP and DEC machines looks very similar in terms of functionality as compared to other UNIX system. However, an awarness of the default compiler options is important. In some cases, a program will fail or produce wrong results if you have compiled it with an excessive level of optimization. When developing a code, it is recommended to use the default optmization level until the program is stable. Once this stage has been completed, you may experiment different optimization levels to improve the performance. Before starting any serious production ensure that the results obtained during the tests are consistent whith those obtained using different optimization levels.
Using two different platforms you must use different options. On each system you have different options, please refer to man pages to get more details:
Here is an example how to compile a simple program program on our UNIX systems, in the two cases HP and DEC :