Podcast
Questions and Answers
What does the -Wintrinsic-shadow option do?
What does the -Wintrinsic-shadow option do?
- Warns if a procedure has the same name as an intrinsic. (correct)
- Provides hints for optimizing intrinsic procedures.
- Automatically renames user-defined procedures.
- Suppresses warnings about intrinsic procedures.
What are the implications of using the -Wunused-parameter option in gfortran?
What are the implications of using the -Wunused-parameter option in gfortran?
- It is included in the -Wall option.
- It ignores all parameter warnings.
- It warns about unused PARAMETER values. (correct)
- It warns about unused dummy arguments.
What does the -Werror option accomplish?
What does the -Werror option accomplish?
- It turns all warnings into errors. (correct)
- It suppresses all warnings during compilation.
- It converts errors into warnings.
- It treats all warnings as non-critical.
What is the primary use of the -fdump-parse-tree option?
What is the primary use of the -fdump-parse-tree option?
Which IEEE exceptions can be specified with the -ffpe-trap option?
Which IEEE exceptions can be specified with the -ffpe-trap option?
What happens when the -Walign-commons option is activated?
What happens when the -Walign-commons option is activated?
Which option is used to suppress the warnings generated by -Walign-commons?
Which option is used to suppress the warnings generated by -Walign-commons?
What does the parameter 'list' in the -ffpe-trap option represent?
What does the parameter 'list' in the -ffpe-trap option represent?
Which version of the Fortran standard is NOT fully supported by the GNU Fortran compiler?
Which version of the Fortran standard is NOT fully supported by the GNU Fortran compiler?
What is the primary purpose of the gfortran command?
What is the primary purpose of the gfortran command?
What happens after the compilation of a Fortran program using gfortran?
What happens after the compilation of a Fortran program using gfortran?
Which of the following best describes the errors the Fortran 90 standard requires the compiler to report?
Which of the following best describes the errors the Fortran 90 standard requires the compiler to report?
What is a key benefit of using high-level programming languages like Fortran over machine code?
What is a key benefit of using high-level programming languages like Fortran over machine code?
Which of the following statements is true regarding the GNU Fortran compiler's support for language standards?
Which of the following statements is true regarding the GNU Fortran compiler's support for language standards?
In what case will the GNU Fortran compiler provide error messages to users?
In what case will the GNU Fortran compiler provide error messages to users?
Which of the following is NOT a goal of the GNU Fortran compiler?
Which of the following is NOT a goal of the GNU Fortran compiler?
What does the option '-fopenmp' enable in a Fortran program?
What does the option '-fopenmp' enable in a Fortran program?
What is the consequence of using '-fno-range-check' in a Fortran compilation?
What is the consequence of using '-fno-range-check' in a Fortran compilation?
Which of the following standards does the option '-std=legacy' refer to?
Which of the following standards does the option '-std=legacy' refer to?
Which option specifies that preprocessing should be enabled in Fortran?
Which option specifies that preprocessing should be enabled in Fortran?
What is the default standard value for Fortran when no standard is specified?
What is the default standard value for Fortran when no standard is specified?
What does the option '-std=f2003' enforce during compilation?
What does the option '-std=f2003' enforce during compilation?
What will occur if an integer overflow is detected with '-fno-range-check' option?
What will occur if an integer overflow is detected with '-fno-range-check' option?
When enabling OpenMP with '-fopenmp', which feature is also implicitly enabled?
When enabling OpenMP with '-fopenmp', which feature is also implicitly enabled?
What is the impact of using the option '-fmax-stack-var-size=n'?
What is the impact of using the option '-fmax-stack-var-size=n'?
Which option should be used to allow recursive procedures without the RECURSIVE attribute?
Which option should be used to allow recursive procedures without the RECURSIVE attribute?
What does the '-fpack-derived' option do?
What does the '-fpack-derived' option do?
How does the '-frepack-arrays' option affect array handling?
How does the '-frepack-arrays' option affect array handling?
What is the consequence of using the '-fshort-enums' option?
What is the consequence of using the '-fshort-enums' option?
What is a potential downside of using the '-fpack-derived' option?
What is a potential downside of using the '-fpack-derived' option?
What is the default value for the '-fmax-stack-var-size' option?
What is the default value for the '-fmax-stack-var-size' option?
What happens when the size of an array exceeds the limit set by '-fmax-stack-var-size'?
What happens when the size of an array exceeds the limit set by '-fmax-stack-var-size'?
What type of function is BESSEL_J1
?
What type of function is BESSEL_J1
?
Which function is used to test for NaN (Not a Number) values?
Which function is used to test for NaN (Not a Number) values?
The CEILING
function is used to:
The CEILING
function is used to:
Which intrinsic function would you use to get the current time as a string?
Which intrinsic function would you use to get the current time as a string?
Which function provides the bit size inquiry for a variable?
Which function provides the bit size inquiry for a variable?
What does the MOD
function do?
What does the MOD
function do?
To convert a double precision real number to a default real number, which function would you use?
To convert a double precision real number to a default real number, which function would you use?
Which function would you use to remove trailing blank characters from a string?
Which function would you use to remove trailing blank characters from a string?
What is the purpose of the EXIT
function?
What is the purpose of the EXIT
function?
Which function calculates the Euclidean distance between two points?
Which function calculates the Euclidean distance between two points?
Which function can be used to initialize a pseudo-random number sequence?
Which function can be used to initialize a pseudo-random number sequence?
What does the LEN_TRIM
function return?
What does the LEN_TRIM
function return?
Which of the following functions converts an integer to a default real type?
Which of the following functions converts an integer to a default real type?
Which of the following file extensions will GNU Fortran recognize for compiling Fortran source code?
Which of the following file extensions will GNU Fortran recognize for compiling Fortran source code?
What is the purpose of the GCC middle end in the compilation process?
What is the purpose of the GCC middle end in the compilation process?
What is the role of the 'gfortran' driver program within the GCC?
What is the role of the 'gfortran' driver program within the GCC?
Which statement about preprocessing and conditional compilation in GNU Fortran is correct?
Which statement about preprocessing and conditional compilation in GNU Fortran is correct?
How does GCC determine whether to treat a source file as fixed form or free form?
How does GCC determine whether to treat a source file as fixed form or free form?
What is the primary document that provides a complete reference for the GNU Fortran compiler?
What is the primary document that provides a complete reference for the GNU Fortran compiler?
Which command does the gcc driver program primarily use to compile Fortran source files?
Which command does the gcc driver program primarily use to compile Fortran source files?
What characteristic do the capitalized file extensions have when processed by the GNU Fortran compiler?
What characteristic do the capitalized file extensions have when processed by the GNU Fortran compiler?
Flashcards
'-fopenmp' option
'-fopenmp' option
Enables OpenMP extensions, allowing for parallel processing using !$omp directives. It also links the OpenMP runtime library for execution.
'-fno-range-check' option
'-fno-range-check' option
Disables range checking for simplified constant expressions during compilation. For example, it allows division by zero without raising an error.
'-std=std' option
'-std=std' option
Specifies the Fortran standard for the program. Options include 'f95', 'f2003', 'f2008', 'gnu', and 'legacy'.
'-cpp' option
'-cpp' option
Signup and view all the flashcards
'-nocpp' option
'-nocpp' option
Signup and view all the flashcards
gfortran
gfortran
Signup and view all the flashcards
GNU Fortran compiler features
GNU Fortran compiler features
Signup and view all the flashcards
Compilation
Compilation
Signup and view all the flashcards
Machine code
Machine code
Signup and view all the flashcards
Errors in source code
Errors in source code
Signup and view all the flashcards
Error messages
Error messages
Signup and view all the flashcards
Compiler diagnostics
Compiler diagnostics
Signup and view all the flashcards
Translation of source code to machine code
Translation of source code to machine code
Signup and view all the flashcards
'-fdump-parse-tree'
'-fdump-parse-tree'
Signup and view all the flashcards
'-ffpe-trap=list'
'-ffpe-trap=list'
Signup and view all the flashcards
Floating Point Exception (FPE 'invalid')
Floating Point Exception (FPE 'invalid')
Signup and view all the flashcards
Floating Point Exception (FPE 'overflow')
Floating Point Exception (FPE 'overflow')
Signup and view all the flashcards
Floating Point Exception (FPE 'underflow')
Floating Point Exception (FPE 'underflow')
Signup and view all the flashcards
What is GNU Fortran?
What is GNU Fortran?
Signup and view all the flashcards
Floating Point Exception (FPE 'precision')
Floating Point Exception (FPE 'precision')
Signup and view all the flashcards
Floating Point Exception (FPE 'denormal')
Floating Point Exception (FPE 'denormal')
Signup and view all the flashcards
How is GCC structured?
How is GCC structured?
Signup and view all the flashcards
What is GENERIC?
What is GENERIC?
Signup and view all the flashcards
Floating Point Exception (FPE 'zero')
Floating Point Exception (FPE 'zero')
Signup and view all the flashcards
What is the role of the driver program in GCC?
What is the role of the driver program in GCC?
Signup and view all the flashcards
What file extensions are recognized by GNU Fortran?
What file extensions are recognized by GNU Fortran?
Signup and view all the flashcards
What's the difference between fixed form and free form Fortran?
What's the difference between fixed form and free form Fortran?
Signup and view all the flashcards
What does the C preprocessor do in the context of Fortran?
What does the C preprocessor do in the context of Fortran?
Signup and view all the flashcards
What preprocessor is used with GNU Fortran?
What preprocessor is used with GNU Fortran?
Signup and view all the flashcards
What is the purpose of the '-fmax-stack-var-size' compiler option?
What is the purpose of the '-fmax-stack-var-size' compiler option?
Signup and view all the flashcards
What does the '-fpack-derived' compiler option do?
What does the '-fpack-derived' compiler option do?
Signup and view all the flashcards
What is the purpose of the '-frepack-arrays' compiler option?
What is the purpose of the '-frepack-arrays' compiler option?
Signup and view all the flashcards
What is the purpose of the '-fshort-enums' compiler option?
What is the purpose of the '-fshort-enums' compiler option?
Signup and view all the flashcards
What is the purpose of the '-fexternal-blas' compiler option?
What is the purpose of the '-fexternal-blas' compiler option?
Signup and view all the flashcards
What does the '-frecursive' compiler option do?
What does the '-frecursive' compiler option do?
Signup and view all the flashcards
What is the effect of the '-fno-automatic' compiler option?
What is the effect of the '-fno-automatic' compiler option?
Signup and view all the flashcards
Describe the '-fblas-matmul-limit' compiler option and how it works with '-fexternal-blas'.
Describe the '-fblas-matmul-limit' compiler option and how it works with '-fexternal-blas'.
Signup and view all the flashcards
LOC
LOC
Signup and view all the flashcards
C_FUNLOC
C_FUNLOC
Signup and view all the flashcards
C_F_PROCPOINTER
C_F_PROCPOINTER
Signup and view all the flashcards
C_F_POINTER
C_F_POINTER
Signup and view all the flashcards
C_LOC
C_LOC
Signup and view all the flashcards
C_SIZEOF
C_SIZEOF
Signup and view all the flashcards
BIT_SIZE
BIT_SIZE
Signup and view all the flashcards
BTEST
BTEST
Signup and view all the flashcards
GETCWD
GETCWD
Signup and view all the flashcards
GETENV
GETENV
Signup and view all the flashcards
GETPID
GETPID
Signup and view all the flashcards
GETUID
GETUID
Signup and view all the flashcards
PRESENT
PRESENT
Signup and view all the flashcards
SHAPE
SHAPE
Signup and view all the flashcards
TINY
TINY
Signup and view all the flashcards
Study Notes
GNU Fortran Compiler
- GNU Fortran is a Fortran compiler, part of the GCC compiler suite.
- It supports Fortran 77, 90, 95, parts of 2003 and 2008 standards.
- It also supports some vendor extensions.
GNU Fortran Documentation
- Published by the Free Software Foundation
- Licensed under the GNU Free Documentation License.
- The manual covers invoking GNU Fortran, its command options, runtime, language reference, extensions, mixed-language programming, intrinsic procedures, modules, and contributing sections.
Table of Contents
- The table of contents details sections within the manual, including specific topics like introduction, command options, runtime, language reference, extensions, etc.
- The table is organized by Parts and sections.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.