[Flang-dev] new Flang discussions?

Roger Ferrer Ibáñez rofirrim at gmail.com
Thu Oct 11 11:52:34 EDT 2018

Hi Jeff,

definitely, but I would expect a source-level tool to operate on a
representation of the source input which hasn't undergone any lowering yet.
If the goal is only code generation (which it isn't, for let's say, a
checker), then I fully buy the idea of lowering things to C/C++.

I'm a bit scared of the idea of something akin to f2c happening in the FE,
but perhaps this is not what will happen and my concern is moot?

Kind regards,

Missatge de Stefan Teleman <stefan.teleman at gmail.com> del dia dj., 11
d’oct. 2018 a les 17:29:

> On Thu, Oct 11, 2018 at 11:24 AM Roger Ferrer Ibáñez <rofirrim at gmail.com>
> wrote:
>> Hi Jeff,
>> my concern was more about the extra expressivity of Fortran in some
>> aspects compared to C/C++: things like array-sections, sophisticated
>> constructs like WHERE or FORALL, statements like ALLOCATE/DEALLOCATE, the
>> extra semantics of the DO-construct when the step is nonconstant, the
>> IO-statements might mean that you end with a superset of nodes including
>> every single specific construct of the language in the AST. Sure, you can
>> lower all of them into C/C++ (and use C/C++ ASTs for that), it is just I am
>> not sure I would like to see this happen early.
> Why?
> None of the Fortran features enumerated above precludes lowering to C/C++
> AST.
> --
> Stefan Teleman
> stefan.teleman at gmail.com

Roger Ferrer Ibáñez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20181011/383e3446/attachment-0001.html>

More information about the flang-dev mailing list