View Single Post

   
  #2 (permalink)  
Old 01-04-2008, 10:39 PM
Ian Bush
 
Posts: n/a
Default Re: Compiler options for XL Fortran on AIX

Recif wrote:

> Hi,
> Is there a compiler option for XL Fortran on AIX similar to the
> Intel Fortran compiler option:
> -nofor_main
> Specifies the main program is not written in Fortran, and
> prevents the compiler from linking for_main.o into
> applications. The default is -for_main.
>


No idea, but you could have a look at /etc/xlf.cfg and probably from
there work out how to get ld to do what you want.


> Also is there an option to display the version number. Compiling
> file.f with the -qsource option lists the version number in the first
> line of file.lst, but I would like to to find a direct approach.
>


lslpp -L | grep xlf does it:


bash-2.05a$ lslpp -L | grep xlf
xlfcmp 8.1.1.2 A F XL Fortran Compiler
xlfcmp.html.en_US 8.1.1.0 C F XL Fortran Compiler
xlfcmp.idebug.html.en_US 8.1.1.0 C F Distributed Debugger
xlfcmp.msg.en_US 8.1.1.1 A F XL Fortran Compiler Messages -
xlfcmp.pdf.en_US 8.1.1.0 C F XL Fortran Compiler
xlfcmp.ps.en_US 8.1.1.0 C F XL Fortran Compiler
xlfrte 8.1.1.2 A F XL Fortran Runtime Environment
xlfrte.aix43 7.1.0.0 C F XL Fortran Runtime Environment
xlfrte.aix51 8.1.1.1 A F XL Fortran Runtime Environment
xlfrte.msg.en_US 8.1.1.1 A F XL Fortran Runtime Messages -

Hope this helps,

Ian

Reply With Quote