[flang-commits] [PATCH] D130166: [flang] Adding a guideline for flang design documentation
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Jul 21 11:49:54 PDT 2022
klausler added inline comments.
================
Comment at: flang/docs/DesignGuideline.md:79
+ with flang. It is not a goal to be 100% binary compatible with other
+ compilers outside of Fortran 77, but sources of incompatibility should be
+ known and justified.
----------------
bryanpkc wrote:
> Even for Fortran 77, can we really achieve binary compatibility with other compilers? I feel that binary compatibility shouldn't be a goal at all. As Kiran pointed out above, compatibility can mean different things; some important aspects where compatibility with other established compilers might be useful include: semantics of command-line options, default floating-point math behavior, runtime library functionality, etc.
Total compatibility is of course not possible, but f18 should avoid gratuitous incompatibilities that prevents linking to F'77-level libraries compiled by gfortran and others. The ABI conventions for procedures that do not require explicit interfaces are well known and not hard to follow.
Code requiring explicit interfaces or modules is of course a different story that is not news to Fortran users; but even there, we've at least used a module file format that any other compiler should be able to parse.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130166/new/
https://reviews.llvm.org/D130166
More information about the flang-commits
mailing list