This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compilation and unit nos. in g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: jayant ogale <jaogale at yahoo dot co dot in>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 21 Dec 2003 13:43:47 +0100
- Subject: Re: compilation and unit nos. in g77
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20031219074910.46769.qmail@web8001.mail.in.yahoo.com>
jayant ogale wrote:
I have some programs written in Professional Fortran
[Dos Based], in Borland compiler.
I want to convert them for G77 [Linux based]
compiler. Please let me know the following things.
1] what are the default unit numbers for 'Console'
and 'Printer' in G77? if there are non then give me
the syntex to refer to the console and printer in read
/ write statements.
There are no standard ways to address 'Printer' from Fortran (or g77).
Use READ(*, ...) to read from the console and WRITE(*, ...) to write
to it. There probably is some DOS command to have the output to the
console go to the printer.
2] I know only one line compilation and linking
command as $ g77 filename.for which creates
executable file as a.out. But I would like to know
the detailed compilation and linking commands with
all possible switches. [I could not find them in man
or info pages.].
You can read the online manual here:
http://gcc.gnu.org/onlinedocs/gcc-3.3.2/g77/
Hope this helps,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)