Compiler query
From: Aenathras (aenathras_at_beenlogoed.com)
Date: 06/27/04
- Previous message: kia: "Re: Tales for Intel"
- Next in thread: beliavsky_at_aol.com: "Re: Compiler query"
- Reply: beliavsky_at_aol.com: "Re: Compiler query"
- Reply: Tim Prince: "Re: Compiler query"
- Reply: David Frank: "Re: Compiler query"
- Reply: Herman D. Knoble: "Re: Compiler query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: kia: "Re: Tales for Intel"
- Next in thread: beliavsky_at_aol.com: "Re: Compiler query"
- Reply: beliavsky_at_aol.com: "Re: Compiler query"
- Reply: Tim Prince: "Re: Compiler query"
- Reply: David Frank: "Re: Compiler query"
- Reply: Herman D. Knoble: "Re: Compiler query"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|