makefile中的编译选项fflags
-
21-12-2019 - |
题
编译选项的意思是什么?
export FFLAGS = -O3 -r8 -i4 -I${PWD}/headers -nofor_main
。
-R8意味着什么?I4意味着什么?我在哪里可以找到帮助文件。任何人都解释了编译选项fflags?我真的很感激它
解决方案
您显然已经知道Fortran编译器的选项列表。
FFLAGS
将某些数据类型的大小设置为8字节,具体取决于架构。它是大约与设置双精度相同。
-r8
将默认整数大小设置为4个字节。
你需要更多吗?
编辑:
有很多不同的编译器和编译器版本。vnumake的默认值是生成的,来自 unix man page :
.-r8 Double the size of default REAL, DOUBLE, INTEGER, and COMPLEX data. NOTE: This option is now considered obsolete and may be removed in future releases. Use the more flexible -xtypemap option instead. This option sets the default size for REAL, INTEGER, and LOGICAL to 8, and for COMPLEX to 16. For INTEGER and LOGI- CAL the compiler allocates 8 bytes, but does 4-byte arith- metic. For actual 8-byte arithmetic, see -dbl.
不隶属于 StackOverflow