Re: Online F77 information...



Gordon Sande wrote:

It is pretty rare anymore for the compiler driver to not also
run the linker after the compiler.

My intention was to teach, or help a novice. Of course, a compile-link
batch call is also available.
If one understands the processes in producing an executable from
source code, you help to produce a better programmer.

The reason for the non-automatic LINK pass is to allow the option of
linking in pre-compiled routines that are NOT already in a library
(e.g. new versions, debug versions), or maybe in other directories; and
to allow specifying at will, a particular set of libraries to search
for any missing functions and subroutines, and/or a TUI/GUI library.

The compiler I referred to (MS F77), produces pseudo code first,
which allows a where-referenced optional pass to provide additional
cross-reference listings.
But normal use with this compiler is to skip PAS2 and go to LINK.

An automatic compile-link does not make sense unless all the code is
present and is being compiled together and there are no exterior
unsatisfied references..

Usually you need switches to get just a compile.

I disagree; usually you do NOT need switches.
A large proportion of the postings on specific Fortran compiler user
sites are about getting the right switches set!
..
I prefer to HAVE no switches and a simple way of producing working
programs.
That is why a simple system is easier to learn as it produces programs
equal in effectiveness as those produced by F90 or F95 versions but
with much greater effort.

Yes, I have F90 and F95 compiler from Lahey, Compaq and Intel, but I
USE an MS F77 compiler from choice and experience. And its not just
familarity; I've written many F90 coded programs, but it's a typing
pain to do so.

Another point is that more recent compilers compile to C++ and not to
machine code, so you also need a C++ license and possibly a Development
Studio license and a TUI license....

.



Relevant Pages

  • Re: Win32 API and gfortran
    ... write out a module containing only interface blocks and compile the ... that the /iface switches and ATTRIBUTES directives change the compiler ... arguments are passed in the normal Fortran way ...
    (comp.lang.fortran)
  • Re: link with C runtime library
    ... be one of /Mxxx switches. ... Compiler and CRT are tightly coupled. ... We can not separate C and C++ libraries and they ...
    (microsoft.public.vc.language)
  • Re: Trig Function Linking Problems
    ... There are switches to see how the c compiler is called ... compiler stages, assembler or dynmic linking is probably a good first ...
    (comp.lang.ada)
  • Re: Borland e i "nuovi" MacIntel ... x Sviluppatori ... "informati" ... :-)
    ... > A me un linguaggio che cambia radicalmente semantica a seconda di uno ... helen:~ alex$ python -c'print 2/3' ... ad esempio) e` sacrosanto introdurre compiler switches per ...
    (it.comp.macintosh)
  • (part 11) Han from China answers your C questions
    ... I really wish gcc switches were as carefully planned out as the rest ... figured out what the precise differences are between those two switches. ... sizeof's result is evaluated by the compiler. ... I, for one, am proud of how Richard is coming along. ...
    (comp.lang.c)