CAN TWO DIFFERENT VERSIONS OF FORTRAN RUN ON A

ITEM: RTA000042806



QUESTION:                                                                       
Can my customer install and use two different versions of the FORTRAN/          
6000 compiler? (ie: Fortran 2.x an FORTRAN 3.x)  If so, how does he             
go about the installation process and the usage of  one over the other?         
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A:  An item which was submitted recently which posed the same questions         
    you ask.  It also includes related questions that you may find              
    pertinent.  I have appended it below for your convenience and I             
    will library it for future reference:                                       
                                                                                
 Abstract: Questions on XL fortran V2 and V3 compatibility.                     
QUESTION:                                                                       
1) Is there a way to have both Fortran V2 and Fortran V3 on your system?        
2) How do you specify which compiler you want to invoke?                       
3) How do you make sure that a piece of code compiled with the V2               
   compiler is executed with the V2 run-time?                                   
4) Is it possible to have V2 executable run on a system with only V3            
   on it?                                                                       
5) Can ESSL V1.1 run with Fortran V3.1?                                         
                                                                                
I do not have the new Fortran manuals and was                                   
getting confused with the information on the Fortran forum.                     
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A:      These are the answers to your questions on XL Fortran V2.3              
        and V3.1 compatibility:                                                 
                                                                                
        Q1.  Is there a way to have both Fortran V2 and Fortran V3              
             on your system?                                                   
                                                                                
        A1.  Yes, it is possible to have both versions of Fortran               
             included in the same system.  This is documented in the            
             "AIX XL Fortran Compiler/6000 User's Guide Version 3               
             Release 1" manual, page 23.                                        
                                                                                
        Q2.  How do you specify which compiler you want to invoke?              
                                                                                
        A2.  To invoke a specific version you need to create two                
             separate directories, one for each version.  One of                
             the two versions will be declared as the default,                  
             while the other will require a specific compiler                   
             option to invoke it.  The steps to follow in                       
             accomplishing this can be found in the same text I                 
             mentioned above, also on page 23.                                 
                                                                                
        Q3.  How do you make sure that a piece of code compiled                 
             with the V2 compiler is executed with the V2 run-time?             
                                                                                
        A3.  The only way to guarantee that a code compiled with                
             Version 2 will be also be executed with Version 2, is              
             by statically binding the Version 2 libraries.  Please             
             see A4 for more information.                                       
                                                                                
        Q4.  Is it possible to have V2 executable run on a system               
             with only V3 on it?                                                
                                                                                
        A4.  Yes, it is possible to have V2.3 executables run on a              
             system with only V3.1 on it.  The following text is                
             documented on page 23 of the manual I mentioned before:           
                                                                                
                Running Previously Compiled Programs                            
                ------------------------------------                            
                Statically linked programs should continue to run with          
                no change in performance or behavior.                           
                                                                                
                If you have dynamically linked programs compiled by an          
                earlier version of XL Fortran, you can run them on              
                systems with the XL Fortran Version 3 libraries.  The           
                programs will use the Version 3 data formats and I/O            
                behavior, which are somewhat different than in                  
                previous versions.                                              
                                                                                
                The main library for XL Fortran Version 3 is 'libxlf90.a'       
                but calls to older entry points in 'libxlf.a' are still        
                possible; the calls are passed to the new entry points in       
                'libxlf90.a', making the resulting programs slower than         
                if everything is recompiled.                                    
                                                                                
                Compiling and Executing on Different Systems                    
                --------------------------------------------                    
                If you want to move an XL Fortran executable file to a          
                different system for execution, you can link statically         
                and copy the program and optionally the message catlog(s)       
                or link dynamically and copy the program (and XL Fortran        
                libraries if needed). 'libxlf90.a' is the only XL Fortran       
                library needed for most programs.  'libxlf.a' is only           
                needed if the program has any pre-Version 3 object files        
                linked in, and 'libxlfpmt*.a' and 'libxlfpad.a' are only        
                needed if the program is compiled with the '-qautodbl'         
                option.                                                         
                                                                                
                For a dynamically linked program to work properly, the          
                XL Fortran libraries on the execution system must be at         
                the same level or a more recent level than on the               
                compilation system.                                             
                                                                                
        Q5. Can ESSL V1.1 run with Fortran V3.1?                                
                                                                                
        A5. No, ESSL V1.1 cannot run with Fortran V3.1.  ESSL V2.2              
            can run with Fortran V3.1 and any other version of                  
            Fortran.                                                            
                                                                                
        I realized you do not have the Fortran manuals.  If you                 
        provide us with your fax number, we will fax you the                   
        information from the manual that you will need.                         
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q660140      CRRTB                      
                                                                                
Additional search words:                                                        
COMPILERS CRRTB EXECUTE FORTRAN IX LANGUAGE MAY94 OZNEW RISCL                   
RISCSYSTEM RUN SINGLE SOFTWARE SYS SYSTEM VERSIONS                              
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000042806 ITEM: RTA000042806
Dated: 06/1996 Category: RISCL
This HTML file was generated 99/06/24~12:43:17
Comments or suggestions? Contact us