You can override this default with the +nosharedoption, which causes the linker to mark the executable as unshared, making the program’s code nonshareable. The following command line causes the linker to mark prog.f90as unshared:
$ f90 +noshared prog.f90
In some circumstances, it may help to debug a program or to improve its runtime performance by making it nonshareable. In general, however, it is not desirable because nonshareable executables place greater demands on memory resources.
Compiling in 64-bit mode
Compiling HP Fortran programs with the +DA2.0Woption
•Accesses a large shared memory (greater than 1.75 gigabytes) or large data spaces (greater than 1 gigabyte or, if using EXEC_MAGIC, greater than 1.9 gigabytes)
•Uses large data
•Provides objects or libraries that might be used in a
There are no HP Fortran language differences between
However, the C language has some differences in data type sizes. If your Fortran program calls functions written in C and is compiled in
NOTE: If your program does not need to run in
Using environment variables
Environment variables are variables that are defined in the operating environment of the system and are available to various system components. For example, when you run a program, the shell looks at the PATHvariable to determine where the program is located. Table
Table 24 HP Fortran environment variables
Environment variable | Description |
|
|
F90ROOT | Specifies the alternate root for Fortran compiler and its |
| libraries. |
|
|
ST_F90COM[64] | Specifies the path of |
| respectively in case of |
|
|
HP_F90OPTS | Specifies a list of |
| the command line that invokes the HP Fortran compiler. |
|
|
LPATH | Specifies a list of directories that the linker is to search for |
| libraries. |
|
|
MP_NUMBER_OF_THREADS | Specifies the desired number of processors to be used to |
| run HP Fortran programs that have been compiled for |
| parallel execution. |
|
|
Compiling in