- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I wonder if it is possible to generate abstract syntax tree (ast) files with ifort?
Many thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I know, the answer is no. There is no requirement that a specific compiler use an AST or a similar representation in order to do its job.
After the transition to LLVM is complete, the IFX compiler may use an AST representation, but whether an ordinary user would be allowed to dump that AST is again questionable.
If it were available, what would you do with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to extract a component from a large Fortran application (i.e. a climate model). In a similar work (KGEN: A Python Tool for Automated Fortran Kernel Generation and Verification), I noticed they use AST information to collect the call graph of the component. AST can apparently help with data flow analysis as well. Without an AST, is there any alternative solution to collect such information (for example, call graph, global variables, shared variables, def-use information) from Intel Fortran compiler?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could have a look at LFortran - it is a compiler under development, but currently quite capable of providing an AST. See https://gitlab.com/lfortran/lfortran
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page