Cours Fortran (french)
Lets
GO................................................................go
1) Open a
file name Simple.f90 by using emacs
and put the text in.
>>> emacs Simple.f90&
PROGRAM Simple
IMPLICIT NONE
WRITE(6,*) " Hello it is me "
WRITE(6,*) " It is time to leave Bye Bye
"
END PROGRAM Simple
2) Compile the
file Simple.f90 by using your
favorite fortran compiler
and use an option to
specify the name of the output file, if not there is a default file (check it). compile
- use a computer program to translate source code
written in a particular programming language into computer-readable
machine code that can be executed
>>>
ifort Simple.f90 -o
MyRun
| Or |
>>>g95 Simple.f90 -o
MyRun
| Or | >>>gfortran Simple.f90 -o
MyRun MyRun is the name of
computer-readable
machine file, Compiler are named "ifort"
or "g95" or "gfortran" 3) Run the
the output file of the compilation
>>> ./MyRun Hello it
is me
It is time to leave Bye Bye