Quantcast
Channel: Intel® Fortran Composer XE
Viewing all articles
Browse latest Browse all 1424

Code variation with change in PARAMETER

$
0
0

I compiled a large executable with a current compiler (2013 SP1 Update 3-202) and noted a problem running a specific input set between code which had a single initialization routine with the line


      REAL (KIND = F), PARAMETER :: BBLPERCUFT = 96.0_F / 539.0_F

and code with the line(s)


      REAL (KIND = F), PARAMETER :: BBLPERCUFT =
     &  1.0_F / (49.0_F / 12.0_F) / 1.375_F

Because the updated code caused a crash, I then recompiled both with an older compiler (2013 SP1 Update 1-103).  I am noting the latter executable compiles with a size larger by 412 bytes.  By the way, it is the latter executable which "works".  So what is going on here?  What could possibly be the difference between the two executables?


Viewing all articles
Browse latest Browse all 1424


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>