This patch adds 2 missing items required for flang-new to be able to
- Extra linker flags to include Fortran runtime libraries.
- The Fortran_main runtime library, which implements the main entry point into Fortran's PROGRAM.
With this change, you can generate an executable that will print `hello,
world!` as follows:
$ cat hello.f90 program hello write (*,*), "hello, world!" end program hello $ flang-new hello.f90 ./a.out hello, world!
Note: Fortran_main was originally written by Peter Klausler, Jean Perier
and Steve Scalpone in the fir-dev` branch in .
Co-authored-by: Eric Schweitz <firstname.lastname@example.org>
Co-authored-by: Peter Klausler <email@example.com>
Co-authored-by: Jean Perier <firstname.lastname@example.org>
Co-authored-by: Steve Scalpone <email@example.com