Compiler query

From: Aenathras (aenathras_at_beenlogoed.com)
Date: 06/27/04

  • Next message: beliavsky_at_aol.com: "Re: Compiler query"
    Date: 27 Jun 2004 03:15:01 -0700
    
    

    I don't know if anyone can point me in the right direction(s) here.

    I have a legacy Fortran program compiled with an old version of
    Microsoft Fortran and running in a 'DOS box' under Windows. No
    graphical interface is required - it is a black box for another
    program - it just has to work under Windows 2000 now.

    I started off searching for a Fortran compiler to use - as the moment
    I am using Salford FTN77 - the code was Fortran 77 - and although the
    coding environment is basic I can get it to compile and link. If there
    is a better/more user friendly compiler out there I am open to
    suggestions. The compiler will need to be used in a commercial
    environment.

    The problem that I have with this compiler though is to write Fortran
    code that will read in the number of parameters at run time and then
    to be able to store the parameters as file variables for processing.
    For instance I would have a command:

    ALLOC file1.dat file2.dat 2 D

    where
      ALLOC is the program name (ALLOC.EXE)
      file1.dat is the name of the file to input data from
      file2.dat is the name of the file to output data to
      2 is a parameter which control what the program does
      D is an optional parameter (standing for Debug) telling the program
    to
        show intermediate results - hence the need to know the number of
    parameters

    I need to know the syntax for the code to deal with parameters in
    Salford (or a.n. other compiler) and how to link the libraries at the
    compile/link stage so that the final program can process arguments
    correctly.

    It can't be that unusual request - it is just a case of finding an
    alternative to the Microsoft option.

    Ideas very welcome - code snippets even more welcome :)

    Aenathras


  • Next message: beliavsky_at_aol.com: "Re: Compiler query"

    Relevant Pages

    • Re: A question on Newtons Method
      ... >> I can't believe you'd advise a noob to use a compiler which is still ... > production codes and codes from textbooks. ... > The Fortran standard generally does not specify the required behavior ... >> another important class of hassle which most numerical programmers ...
      (sci.math.num-analysis)
    • Fortran Resources (July 2004)
      ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
      (comp.lang.fortran)
    • Fortran Resources (August 2004)
      ... and the standard for the Fortran language and its derivatives. ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... and Linux include source-compatible Fortran 95 compiler suites ... are available for Linux systems. ...
      (comp.lang.fortran)
    • Fortran Resources (Last Issue)
      ... the, then, new Fortran 90. ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... The Fortran Company offers F, the subset language, for Unix and Windows, ...
      (comp.lang.fortran)
    • Fortran Resources (June)
      ... and the standard for the Fortran language and its derivatives. ... WHERE CAN I OBTAIN A FORTRAN 95 COMPILER? ... Absoft Fortran compilers, debuggers, and development tools for Windows, ... are available for Linux systems. ...
      (comp.lang.fortran)