Porting Applications from Compaq* Visual Fortran to Intel® Visual Fortran
Total Page:16
File Type:pdf, Size:1020Kb
White Paper Steven Lionel Porting Applications Systems and Solutions Group Intel Corporation from Compaq* Visual Fortran to Intel® Visual Fortran Table of Contents Executive Summary ....................................................................................................................................................3 Introduction ................................................................................................................................................................3 Product Compatibility .................................................................................................................................................3 Common Features ....................................................................................................................................................3 Features Not Supported ..........................................................................................................................................3 Microsoft Visual Studio Premier Partner Edition* ......................................................................................................4 Migrating CVF Projects ...............................................................................................................................................5 Getting Used to the Microsoft Visual Studio 2005 IDE ..............................................................................................7 Projects and Solutions ..............................................................................................................................................7 Changing Settings ....................................................................................................................................................7 Debugging ...............................................................................................................................................................8 Source Changes ..........................................................................................................................................................9 Default Calling Conventions Have Changed ...............................................................................................................9 GETARG, IARGC and NARGS are Now Intrinsic ...........................................................................................................9 New Module Names for System and Library Declarations ....................................................................................... 10 Table 1: Old and New Names of System and Library Modules .................................................................................. 10 Build Changes ......................................................................................................................................................... 11 Compile Command is Now ifort .......................................................................................................................... 11 Using the IMSL Fortran Libraries from Visual Numerics .......................................................................................... 11 Locating and Referencing the IMSL Libraries .......................................................................................................... 11 Product Features ..................................................................................................................................................... 12 Getting Help ............................................................................................................................................................ 13 Porting Applications from Compaq Visual Fortran* to Intel® Visual Fortran White Paper Executive Summary Intel Visual Fortran Compiler for Windows* is the successor to Compaq Visual Fortran*, combining the technologies of the Intel and Compaq compilers. This paper introduces the necessary background for developers who are migrating to the Intel Visual Fortran Compilers from Compaq Visual Fortran. It discusses changes in behavior, and it highlights source and build changes that may be needed as part of that migration. Introduction The Intel Visual Fortran product can coexist on a system with CVF, and you can continue using the older product if you wish. Intel® Visual Fortran Compiler 10.0 for Windows* integrates However, Intel Visual Fortran does not integrate with Microsoft with Microsoft developer tools to provide very high levels of Visual Studio 6 environment used by CVF, whereas CVF does not optimization for the full spectrum of Intel® processor technologies. integrate with the 2002 and later versions of Microsoft Visual In addition to performance and industry-compatibility gains, Studio. The Intel and Compaq products install into separate folder this version provides full support for IA-2, Intel® 64 (formerly trees and use separate registry variables. Intel® EM64T) and IA-64 (Intel® Itanium) architecture processors All Fortran sources must be recompiled with Intel Visual Fortran including the latest Intel multi-core processors, as well as support Compiler; you cannot use CVF-compiled objects, modules, or static for previous generations of processors. libraries with Intel Visual Fortran Compiler. You can, however, use CVF- In most cases, you can rebuild existing Compaq Visual Fortran built dynamic link libraries (DLLs) with applications compiled with the (CVF) applications with the new compilers without source Intel Visual Fortran Compiler, as long as you do not try to share input/ changes, but some applications may need minor coding changes, output units across the two environments. Note also that third-party and build methods may need minor adjustments. This paper libraries built for use with CVF may not work with Intel Visual Fortran describes the key differences you are likely to encounter. For Compiler. Contact the library supplier for more information. additional details, refer to the appropriate compiler release notes Common Features and the compiler documentation. Intel Visual Fortran Compiler supports all of the CVF language syntax, including extensions from Digital Equipment Corporation Product Compatibility (DEC) Fortran and Microsoft Fortran PowerStation* 4. All CVF If you already have installed Microsoft Visual Studio 2005* or library routines are supported, including those from the QuickWin Microsoft Visual Studio .NET 200*, Intel Visual Fortran will and Portability libraries, as are all of the system-interface modules. integrate into that Visual Studio development environment allowing In most cases, a simple rebuild of the application with the Intel you to create, build and debug Fortran and mixed-language compiler is all that is needed. Source changes that you may need applications. If you do not have a supported version of Microsoft to make are described below. Visual Studio installed, Intel Visual Fortran will install Microsoft Features Not Supported Visual Studio Premier Partner Edition* to provide a rich development Intel Visual Fortran supports all of the language syntax supported environment for Fortran programming on IA-2 and Intel® 64 by CVF. However, some of the CVF product features are not systems. (Note that some license types of Intel Visual Fortran do supported by Intel Visual Fortran. These include the following: not provide Microsoft Visual Studio Premier Partner Edition. Please read the compiler’s System Requirements for details.) • Compaq Extended Math Library. The Intel® Math Kernel Library or third-party libraries such as IMSL* and NAG* may White Paper Porting Applications from Compaq Visual Fortran* to Intel® Visual Fortran be suitable alternatives. (Intel Math Kernel Library is provided with Intel Visual Fortran Compiler, Professional Edition and Microsoft Visual Studio the IMSL library is provided with Intel Visual Fortran Compiler, Professional Edition with IMSL. Other products must be Premier Partner Edition* obtained separately.) If you are using Microsoft Visual Studio Premier Partner Edition, • Source Browser cross-reference tool. the following limitations apply: • Format editor tool. • No Microsoft language processors such as Visual C++* or • Save Fortran Environment tool. Visual BASIC* are supplied. If you have existing applications that were created by the CVF COM • CVF projects cannot be converted to Intel Visual Fortran Server Wizard, you may be able to rebuild them with Intel Visual projects. Instead, create a new Intel Visual Fortran project and add your source files to it. Fortran. If you need to make changes to the interfaces, you can do so in CVF if you have left it installed. CVF COM Server Wizard • The Microsoft Resource Editor, used to create and edit dialog projects cannot be converted to Intel® COM Server Wizard projects. boxes, is not provided. Existing resource files can be used. • The Intel® C++ Compiler cannot be used in this environment. Although Intel Visual Fortran supports all CVF language syntax, incorrect programs which were compilable with CVF may result For more information, please refer to the compiler’s Release Notes. in error messages when compiled with Intel Visual Fortran. If you encounter unexpected error messages and need assistance resolving them, please contact Intel® Premier Support. 4 Porting Applications from Compaq Visual Fortran* to Intel® Visual Fortran White Paper 2. In the right or left pane, you will see the Solution Explorer Migrating CVF Projects with the project(s) present. If you do