Re: compilation and unit nos. in g77

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxx - 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)


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux