Fortran Coder

查看: 10229|回复: 5
打印 上一主题 下一主题

[编译器] 有关gfortran初始值的设定的问题

[复制链接]

1963

帖子

12

主题

5

精华

论坛跑堂

臭石头雪球

F 币
1357 元
贡献
574 点

美女勋章热心勋章星光勋章新人勋章贡献勋章管理勋章帅哥勋章爱心勋章规矩勋章元老勋章水王勋章

楼主
发表于 2019-8-18 08:52:04 | 显示全部楼层
       -finit-local-zero
       -finit-integer=n
       -finit-real=<zero|inf|-inf|nan>
       -finit-logical=<true|false>
       -finit-character=n

The -finit-local-zero option instructs the compiler to initialize local "INTEGER",
           "REAL", and "COMPLEX" variables to zero, "LOGICAL" variables to false, and "CHARACTER"
           variables to a string of null bytes.  Finer-grained initialization options are
           provided by the -finit-integer=n, -finit-real=<zero|inf|-inf|nan> (which also
           initializes the real and imaginary parts of local "COMPLEX" variables),

1963

帖子

12

主题

5

精华

论坛跑堂

臭石头雪球

F 币
1357 元
贡献
574 点

美女勋章热心勋章星光勋章新人勋章贡献勋章管理勋章帅哥勋章爱心勋章规矩勋章元老勋章水王勋章

沙发
发表于 2019-8-19 15:10:16 | 显示全部楼层
不是,只有子程序(函数)的局部变量,主程序的变量,才叫“local variables”
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-5-3 09:07

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表