Fortran monthly newsletter, September 2021


Concerning Flang, what means exactly “flang-new (aka. the new driver) now drives the flang bash script before an external compiler is called” ? What does that flang bash script ?


As of right now, Flang doesn’t have a driver that does full code generation yet. What we have is a driver that handles parsing and semantic checking, while the rest is still in the works. The flang bash script calls this driver to parse the Fortran files, then the script tells the driver to unparse them back to Fortran, and finally it calls an external Fortran compiler (gfortran by default) on those unparsed files. It’s a way of checking that what we’re doing is correct so far, until we can finish the code generation pieces.


Welcome @Alexis!

1 Like