Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29279 Discussions

-zero not working in l_fce_pc_8.1.023

friedrich
Beginner
1,037 Views
Hej,



I have problems with compiling my program with -zero. I have some uninitialized integers, and thought that compiling with -zero should initialize them to zero. At least it is working in a 32bit environment, but as soon as I switch to the 64bit environment, I got wrong results out of my program. Of course I could initialize all my integers.....but I would like to know if the -zero is really not working in the 64bit environment.

Any experiences?



Thanks a lot!

Message Edited by friedrich@fhi-berlin.mpg.de on 12-19-2005 04:44 AM

Message Edited by friedrich@fhi-berlin.mpg.de on 12-19-2005 04:44 AM

0 Kudos
4 Replies
TimP
Honored Contributor III
1,037 Views
I believe this extension has been worked on, but I fail to see the reason for relying on this non-standard feature, or on such an old compiler.
0 Kudos
friedrich
Beginner
1,037 Views
I tried l_fc_p_9.0.021.tar.gz 64bit environment, same problem here.

This tar-file is the latest version you get for free for non-commercial use....

Of course I could initialize all integers, the problem is that this programm written by many different people with about 1000 subroutines, and I want to be sure that I do not oversee something.

Message Edited by friedrich@fhi-berlin.mpg.de on 12-19-2005 07:22 AM

0 Kudos
Steven_L_Intel1
Employee
1,037 Views
-zero is claimed to work with static, local, scalar variables only. Perhaps your variables are not among these?

In any event, I would encourage you to file a support request with Intel Premier Support and attach an example. Perhaps there is a compiler bug.
0 Kudos
friedrich
Beginner
1,037 Views
Uups, that is something worth thinking about it......thanks for your help!
0 Kudos
Reply