A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. GNU Fortran 11
  4. 7.2. GNU Fortran Compiler Directives

7.2 GNU Fortran Compiler Directives

• ATTRIBUTES directive:
• UNROLL directive:
• BUILTIN directive:
• IVDEP directive:
• VECTOR directive:
• NOVECTOR directive:

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/GNU-Fortran-Compiler-Directives.html

1. Introduction
1. Introduction
1.1. About GNU Fortran
1.2. GNU Fortran and GCC
1.3. Preprocessing and conditional compilation
1.4. GNU Fortran and G77
1.5. Project Status
1.6. Standards
1.6.1. Varying Length Character Strings
2. Command Options
2. GNU Fortran Command Options
2.1. Option summary
2.10. Options for interoperability with other languages
2.11. Environment variables affecting gfortran
2.2. Options controlling Fortran dialect
2.3. Enable and customize preprocessing
2.4. Options to request or suppress errors and warnings
2.5. Options for debugging your program or GNU Fortran
2.6. Options for directory search
2.7. Influencing the linking step
2.8. Influencing runtime behavior
2.9. Options for code generation conventions
3. Runtime
3. Runtime: Influencing runtime behavior with environment variables
3.1. TMPDIR
3.10. GFORTRAN_CONVERT_UNIT
3.11. GFORTRAN_ERROR_BACKTRACE
3.12. GFORTRAN_FORMATTED_BUFFER_SIZE
3.13. GFORTRAN_UNFORMATTED_BUFFER_SIZE
3.2. GFORTRAN_STDIN_UNIT
3.3. GFORTRAN_STDOUT_UNIT
3.4. GFORTRAN_STDERR_UNIT
3.5. GFORTRAN_UNBUFFERED_ALL
3.6. GFORTRAN_UNBUFFERED_PRECONNECTED
3.7. GFORTRAN_SHOW_LOCUS
3.8. GFORTRAN_OPTIONAL_PLUS
3.9. GFORTRAN_LIST_SEPARATOR
4. Fortran standards status
4. Fortran standards status
4.1. Fortran 2003 status
4.2. Fortran 2008 status
4.3. Status of Fortran 2018 support
5. Compiler Characteristics
5. Compiler Characteristics
5.1. KIND Type Parameters
5.10. Asynchronous I/O
5.2. Internal representation of LOGICAL variables
5.3. Evaluation of logical expressions
5.4. MAX and MIN intrinsics with REAL NaN arguments
5.5. Thread-safety of the runtime library
5.6. Data consistency and durability
5.7. Files opened without an explicit ACTION= specifier
5.8. File operations on symbolic links
5.9. File format of unformatted sequential files
6. Extensions
6. Extensions
6.1. Extensions implemented in GNU Fortran
6.1.1. Old-style kind specifications
6.1.10. BOZ literal constants
6.1.11. Real array indices
6.1.12. Unary operators
6.1.13. Implicitly convert LOGICAL and INTEGER values
6.1.14. Hollerith constants support
6.1.15. Character conversion
6.1.16. Cray pointers
6.1.17. CONVERT specifier
6.1.18. OpenMP
6.1.19. OpenACC
6.1.2. Old-style variable initialization
6.1.20. Argument list functions %VAL, %REF and %LOC
6.1.21. Read/Write after EOF marker
6.1.22. STRUCTURE and RECORD
6.1.23. UNION and MAP
6.1.24. Type variants for integer intrinsics
6.1.25. AUTOMATIC and STATIC attributes
6.1.26. Extended math intrinsics
6.1.27. Form feed as whitespace
6.1.28. TYPE as an alias for PRINT
6.1.29. %LOC as an rvalue
6.1.3. Extensions to namelist
6.1.30. .XOR. operator
6.1.31. Bitwise logical operators
6.1.32. Extended I/O specifiers
6.1.33. Legacy PARAMETER statements
6.1.34. Default exponents
6.1.4. X format descriptor without count field
6.1.5. Commas in FORMAT specifications
6.1.6. Missing period in FORMAT specifications
6.1.7. Default widths for F, G and I format descriptors
6.1.8. I/O item lists
6.1.9. Q exponent-letter
6.2. Extensions not implemented in GNU Fortran
6.2.1. ENCODE and DECODE statements
6.2.2. Variable FORMAT expressions
6.2.3. Alternate complex function syntax
6.2.4. Volatile COMMON blocks
6.2.5. OPEN( ... NAME=)
6.2.6. Q edit descriptor
7. Mixed-Language Programming
7. Mixed-Language Programming
7.1. Interoperability with C
7.1.1. Intrinsic Types
7.1.2. Derived Types and struct
7.1.3. Interoperable Global Variables
7.1.4. Interoperable Subroutines and Functions
7.1.5. Working with Pointers
7.1.6. Further Interoperability of Fortran with C
7.2. GNU Fortran Compiler Directives
7.2.1. ATTRIBUTES directive
7.2.2. UNROLL directive
7.2.3. BUILTIN directive
7.2.4. IVDEP directive
7.2.5. VECTOR directive
7.2.6. NOVECTOR directive
7.3. Non-Fortran Main Program
7.3.1. _gfortran_set_args
7.3.2. _gfortran_set_options
7.3.3. _gfortran_set_convert
7.3.4. _gfortran_set_record_marker
7.3.5. _gfortran_set_fpe
7.3.6. _gfortran_set_max_subrecord_length
7.4. Naming and argument-passing conventions
7.4.1. Naming conventions
7.4.2. Argument passing conventions
8. Coarray Programming
8. Coarray Programming
8.1. Type and enum ABI Documentation
8.1.1. caf_token_t
8.1.2. caf_register_t
8.1.3. caf_deregister_t
8.1.4. caf_reference_t
8.1.5. caf_team_t
8.2. Function ABI Documentation
8.2.1. _gfortran_caf_init
8.2.10. _gfortran_caf_is_present
8.2.11. _gfortran_caf_send
8.2.12. _gfortran_caf_get
8.2.13. _gfortran_caf_sendget
8.2.14. _gfortran_caf_send_by_ref
8.2.15. _gfortran_caf_get_by_ref
8.2.16. _gfortran_caf_sendget_by_ref
8.2.17. _gfortran_caf_lock
8.2.18. _gfortran_caf_lock
8.2.19. _gfortran_caf_event_post
8.2.2. _gfortran_caf_finish
8.2.20. _gfortran_caf_event_wait
8.2.21. _gfortran_caf_event_query
8.2.22. _gfortran_caf_sync_all
8.2.23. _gfortran_caf_sync_images
8.2.24. _gfortran_caf_sync_memory
8.2.25. _gfortran_caf_error_stop
8.2.26. _gfortran_caf_error_stop_str
8.2.27. _gfortran_caf_fail_image
8.2.28. _gfortran_caf_atomic_define
8.2.29. _gfortran_caf_atomic_ref
8.2.3. _gfortran_caf_this_image
8.2.30. _gfortran_caf_atomic_cas
8.2.31. _gfortran_caf_atomic_op
8.2.32. _gfortran_caf_co_broadcast
8.2.33. _gfortran_caf_co_max
8.2.34. _gfortran_caf_co_min
8.2.35. _gfortran_caf_co_sum
8.2.36. _gfortran_caf_co_reduce
8.2.4. _gfortran_caf_num_images
8.2.5. _gfortran_caf_image_status
8.2.6. _gfortran_caf_failed_images
8.2.7. _gfortran_caf_stopped_images
8.2.8. _gfortran_caf_register
8.2.9. _gfortran_caf_deregister
9. Intrinsic Procedures
9. Intrinsic Procedures
9.1. Introduction to intrinsic procedures
9.10. ADJUSTR
9.100. EXECUTE_COMMAND_LINE
9.101. EXIT
9.102. EXP
9.103. EXPONENT
9.104. EXTENDS_TYPE_OF
9.105. FDATE
9.106. FGET
9.107. FGETC
9.108. FINDLOC
9.109. FLOOR
9.11. AIMAG
9.110. FLUSH
9.111. FNUM
9.112. FPUT
9.113. FPUTC
9.114. FRACTION
9.115. FREE
9.116. FSEEK
9.117. FSTAT
9.118. FTELL
9.119. GAMMA
9.12. AINT
9.120. GERROR
9.121. GETARG
9.122. GET_COMMAND
9.123. GET_COMMAND_ARGUMENT
9.124. GETCWD
9.125. GETENV
9.126. GET_ENVIRONMENT_VARIABLE
9.127. GETGID
9.128. GETLOG
9.129. GETPID
9.13. ALARM
9.130. GETUID
9.131. GMTIME
9.132. HOSTNM
9.133. HUGE
9.134. HYPOT
9.135. IACHAR
9.136. IALL
9.137. IAND
9.138. IANY
9.139. IARGC
9.14. ALL
9.140. IBCLR
9.141. IBITS
9.142. IBSET
9.143. ICHAR
9.144. IDATE
9.145. IEOR
9.146. IERRNO
9.147. IMAGE_INDEX
9.148. INDEX
9.149. INT
9.15. ALLOCATED
9.150. INT2
9.151. INT8
9.152. IOR
9.153. IPARITY
9.154. IRAND
9.155. IS_CONTIGUOUS
9.156. IS_IOSTAT_END
9.157. IS_IOSTAT_EOR
9.158. ISATTY
9.159. ISHFT
9.16. AND
9.160. ISHFTC
9.161. ISNAN
9.162. ITIME
9.163. KILL
9.164. KIND
9.165. LBOUND
9.166. LCOBOUND
9.167. LEADZ
9.168. LEN
9.169. LEN_TRIM
9.17. ANINT
9.170. LGE
9.171. LGT
9.172. LINK
9.173. LLE
9.174. LLT
9.175. LNBLNK
9.176. LOC
9.177. LOG
9.178. LOG10
9.179. LOG_GAMMA
9.18. ANY
9.180. LOGICAL
9.181. LONG
9.182. LSHIFT
9.183. LSTAT
9.184. LTIME
9.185. MALLOC
9.186. MASKL
9.187. MASKR
9.188. MATMUL
9.189. MAX
9.19. ASIN
9.190. MAXEXPONENT
9.191. MAXLOC
9.192. MAXVAL
9.193. MCLOCK
9.194. MCLOCK8
9.195. MERGE
9.196. MERGE_BITS
9.197. MIN
9.198. MINEXPONENT
9.199. MINLOC
9.2. ABORT
9.20. ASIND
9.200. MINVAL
9.201. MOD
9.202. MODULO
9.203. MOVE_ALLOC
9.204. MVBITS
9.205. NEAREST
9.206. NEW_LINE
9.207. NINT
9.208. NORM2
9.209. NOT
9.21. ASINH
9.210. NULL
9.211. NUM_IMAGES
9.212. OR
9.213. PACK
9.214. PARITY
9.215. PERROR
9.216. POPCNT
9.217. POPPAR
9.218. PRECISION
9.219. PRESENT
9.22. ASSOCIATED
9.220. PRODUCT
9.221. RADIX
9.222. RAN
9.223. RAND
9.224. RANDOM_INIT
9.225. RANDOM_NUMBER
9.226. RANDOM_SEED
9.227. RANGE
9.228. RANK
9.229. REAL
9.23. ATAN
9.230. RENAME
9.231. REPEAT
9.232. RESHAPE
9.233. RRSPACING
9.234. RSHIFT
9.235. SAME_TYPE_AS
9.236. SCALE
9.237. SCAN
9.238. SECNDS
9.239. SECOND
9.24. ATAND
9.240. SELECTED_CHAR_KIND
9.241. SELECTED_INT_KIND
9.242. SELECTED_REAL_KIND
9.243. SET_EXPONENT
9.244. SHAPE
9.245. SHIFTA
9.246. SHIFTL
9.247. SHIFTR
9.248. SIGN
9.249. SIGNAL
9.25. ATAN2
9.250. SIN
9.251. SIND
9.252. SINH
9.253. SIZE
9.254. SIZEOF
9.255. SLEEP
9.256. SPACING
9.257. SPREAD
9.258. SQRT
9.259. SRAND
9.26. ATAN2D
9.260. STAT
9.261. STORAGE_SIZE
9.262. SUM
9.263. SYMLNK
9.264. SYSTEM
9.265. SYSTEM_CLOCK
9.266. TAN
9.267. TAND
9.268. TANH
9.269. THIS_IMAGE
9.27. ATANH
9.270. TIME
9.271. TIME8
9.272. TINY
9.273. TRAILZ
9.274. TRANSFER
9.275. TRANSPOSE
9.276. TRIM
9.277. TTYNAM
9.278. UBOUND
9.279. UCOBOUND
9.28. ATOMIC_ADD
9.280. UMASK
9.281. UNLINK
9.282. UNPACK
9.283. VERIFY
9.284. XOR
9.29. ATOMIC_AND
9.3. ABS
9.30. ATOMIC_CAS
9.31. ATOMIC_DEFINE
9.32. ATOMIC_FETCH_ADD
9.33. ATOMIC_FETCH_AND
9.34. ATOMIC_FETCH_OR
9.35. ATOMIC_FETCH_XOR
9.36. ATOMIC_OR
9.37. ATOMIC_REF
9.38. ATOMIC_XOR
9.39. BACKTRACE
9.4. ACCESS
9.40. BESSEL_J0
9.41. BESSEL_J1
9.42. BESSEL_JN
9.43. BESSEL_Y0
9.44. BESSEL_Y1
9.45. BESSEL_YN
9.46. BGE
9.47. BGT
9.48. BIT_SIZE
9.49. BLE
9.5. ACHAR
9.50. BLT
9.51. BTEST
9.52. C_ASSOCIATED
9.53. C_F_POINTER
9.54. C_F_PROCPOINTER
9.55. C_FUNLOC
9.56. C_LOC
9.57. C_SIZEOF
9.58. CEILING
9.59. CHAR
9.6. ACOS
9.60. CHDIR
9.61. CHMOD
9.62. CMPLX
9.63. CO_BROADCAST
9.64. CO_MAX
9.65. CO_MIN
9.66. CO_REDUCE
9.67. CO_SUM
9.68. COMMAND_ARGUMENT_COUNT
9.69. COMPILER_OPTIONS
9.7. ACOSD
9.70. COMPILER_VERSION
9.71. COMPLEX
9.72. CONJG
9.73. COS
9.74. COSD
9.75. COSH
9.76. COTAN
9.77. COTAND
9.78. COUNT
9.79. CPU_TIME
9.8. ACOSH
9.80. CSHIFT
9.81. CTIME
9.82. DATE_AND_TIME
9.83. DBLE
9.84. DCMPLX
9.85. DIGITS
9.86. DIM
9.87. DOT_PRODUCT
9.88. DPROD
9.89. DREAL
9.9. ADJUSTL
9.90. DSHIFTL
9.91. DSHIFTR
9.92. DTIME
9.93. EOSHIFT
9.94. EPSILON
9.95. ERF
9.96. ERFC
9.97. ERFC_SCALED
9.98. ETIME
9.99. EVENT_QUERY
10. Intrinsic Modules
10. Intrinsic Modules
10.1. ISO_FORTRAN_ENV
10.2. ISO_C_BINDING
10.3. IEEE modules: IEEE_EXCEPTIONS, IEEE_ARITHMETIC, and IEEE_FEATURES
10.4. OpenMP Modules OMP_LIB and OMP_LIB_KINDS
10.5. OpenACC Module OPENACC
Copyright ©2025 TypeError Powered By AnyPost, page cost 102ms.
Privacy Policy