옵션 요약

옵션 요약 (Option Summary)

GNU Fortran 전용 옵션 전체를 유형별로 한곳에 모아 둔 요약 페이지예요. 각 옵션의 상세 설명은 뒤따르는 절들에서 다루니까, 여기서는 "어떤 옵션이 있는지" 전체 그림을 먼저 보는 용도로 쓰면 좋아요.

출처: Option Summary (The GNU Fortran Compiler)

본문

GNU Fortran에 특화된 모든 옵션을 유형별로 정리한 요약이에요. 각각의 자세한 설명은 다음 절들을 참고하면 돼요.

  • Fortran Language Options
-fall-intrinsics -fallow-argument-mismatch -fallow-invalid-boz
-fbackslash -fcray-pointer -fd-lines-as-code -fd-lines-as-comments
-fdec -fdec-char-conversions -fdec-structure -fdec-intrinsic-ints
-fdec-static -fdec-math -fdec-include -fdec-format-defaults
-fdec-blank-format-item -fdefault-double-8 -fdefault-integer-8
-fdefault-real-8 -fdefault-real-10 -fdefault-real-16 -fdollar-ok
-ffixed-line-length-n -ffixed-line-length-none -fpad-source
-ffree-form -ffree-line-length-n -ffree-line-length-none
-fimplicit-none -finteger-4-integer-8 -fmax-identifier-length
-fmodule-private -ffixed-form -fno-range-check -fopenacc -fopenmp
-fopenmp-allocators -fopenmp-simd -freal-4-real-10 -freal-4-real-16
-freal-4-real-8 -freal-8-real-10 -freal-8-real-16 -freal-8-real-4
-std=std -ftest-forall-temp -funsigned
  • Preprocessing Options
-A-question[=answer]
-Aquestion=answer -C -CC -Dmacro[=defn]
-H -P
-Umacro -cpp -dD -dI -dM -dN -dU -fworking-directory
-imultilib dir
-iprefix file -iquote -isysroot dir -isystem dir -nocpp
-nostdinc
-undef
  • Error and Warning Options
-Waliasing -Wall -Wampersand -Warray-bounds
-Wc-binding-type -Wcharacter-truncation -Wconversion
-Wno-deprecated-openmp -Wdo-subscript -Wfunction-elimination
-Wimplicit-interface -Wimplicit-procedure -Wintrinsic-shadow
-Wuse-without-only -Wintrinsics-std -Wline-truncation -Wno-align-commons
-Wno-overwrite-recursive -Wno-tabs -Wreal-q-constant -Wsurprising
-Wunderflow -Wunused-parameter -Wrealloc-lhs -Wrealloc-lhs-all
-Wfrontend-loop-interchange -Wtarget-lifetime -Wundefined-vars
-Wunused-intent-out -Wunused-read -fmax-errors=n
-fsyntax-only -pedantic
-pedantic-errors
  • Debugging Options
-fbacktrace -fdebug-aux-vars -ffpe-trap=list
-ffpe-summary=list
  • Directory Options
-Idir -Jdir -fintrinsic-modules-path dir
  • Link Options
-static-libgfortran  -static-libquadmath
  • Runtime Options
-fconvert=conversion -fmax-subrecord-length=length
-frecord-marker=length -fsign-zero
  • Interoperability Options
-fc-prototypes -fc-prototypes-external
  • Code Generation Options
-faggressive-function-elimination -fblas-matmul-limit=n
-fbounds-check -ftail-call-workaround -ftail-call-workaround=n
-fcheck-array-temporaries
-fcheck=<all|array-temps|bits|bounds|do|mem|pointer|recursion>
-fcoarray=<none|single|shared|lib> -fexternal-blas -fexternal-blas64 -ff2c
-ffrontend-loop-interchange -ffrontend-optimize
-finit-character=n -finit-integer=n -finit-local-zero
-finit-derived -finit-logical=<true|false>
-finit-real=<zero|inf|-inf|nan|snan>
-finline-intrinsics[=<minloc,maxloc>]
-finline-matmul-limit=n
-finline-arg-packing -fmax-array-constructor=n
-fmax-stack-var-size=n -fno-align-commons -fno-automatic
-fno-protect-parens -fno-underscoring -fsecond-underscore
-fpack-derived -frealloc-lhs -frecursive -frepack-arrays
-fshort-enums -fstack-arrays
  • Developer Options
-fdump-fortran-global -fdump-fortran-optimized
-fdump-fortran-original -fdump-parse-tree -save-temps

옵션이 많아 보여도 대부분 -f로 시작하는 기능 스위치와 -W로 시작하는 경고 제어로 나뉘는 걸 알 수 있어요. 하나하나 외울 필요는 없고, 필요할 때 이 요약에서 이름을 찾은 뒤 해당 절에서 동작 방식을 확인하면 충분해요.

더 알아보기