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

My doubt with CVF6.0

hupo1982
Beginner
385 Views
when I fixsome bugs in my CVF6.0 project, I got a doubt ,
this is my test code:
INTEGER a(5)
a(0) = 5
WRITE(*,*) a(0)
END
a(0) = 5 is a apparent error, and I got my debug version, it will crash when I run it, but if I got a release version, it will run very well, output "5".
Why?
0 Kudos
2 Replies
Intel_C_Intel
Employee
385 Views

Hello,

DEBUG means DE-BUG and is the configuration to be used to trap and fix bugs. RELEASE is another story, here many bugs may not be visible. Thus develop application using DEBUG and ship the RELEASE. The advantage of the RELEASE is that it is faster and that it does not terminate easily due to unimportant bugs.

Regards,

Lars Petter

0 Kudos
Steven_L_Intel1
Employee
385 Views
In particular, a Debug configuration turns on array bounds checking and a Release configuration turns it off.
0 Kudos
Reply