Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Fortran EXE

JohnNichols
Valued Contributor III
755 Views

Is anyone aware of why the FORTRAN exe file contains a line at the top that says == This program cannot run in DOS MODE?

It is 25 years since people used DOS? 

Interesting 

0 Kudos
2 Replies
JohnNichols
Valued Contributor III
755 Views

https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

Answered my own question a few minutes later -- the DOS stub is at the start of all EXE programs and gives an error message if executed 

Interesting 

0 Kudos
GVautier
New Contributor III
755 Views

It is a consequence of backward compatibility. DOS and extended applications had to cohabit for a while so this stub was mandatory to avoid launching a mismatched application.

There are many other things like that under Windows and even I think Linux.

0 Kudos
Reply