Levels of POSIX pthreads API support

XL Fortran supports 64-bit thread programming with the 1003.1-1996 (POSIX) standard pthreads API. It also supports 32-bit programming with both the Draft 7 and the 1003.1-1996 standard APIs.

You can use invocation commands (which use corresponding stanzas in the xlf.cfg.nn configuration file) to compile and then link your programs with either the 1003.1-1996 standard or the Draft 7 interface libraries.
  • To compile and then link your program with the 1003.1-1996 standard interface libraries, use the xlf_r, xlf90_r, xlf95_r, xlf2003_r, or xlf2008_r command. For example, you could specify:
    xlf95_r test.f
  • To compile and then link your program with the Draft 7 interface libraries, use the xlf_r7, xlf90_r7, or xlf95_r7 command. For example, you could specify:
    xlf95_r7 test.f
    Apart from the level of thread support, the xlf_r7, xlf90_r7, and xlf95_r7 commands and the corresponding stanzas in the xlf.cfg.nn configuration file provide the same support as the xlf_r, xlf90_r, and xlf95_r commands and the corresponding stanzas.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us