Skip to content

specs-feup/flang-dumper

Repository files navigation

flang-dumper

Dumper of flang's AST into a JSON format.

Installing dependencies

There is a script for installing the required dependecies.

Building

cmake -B build
cd build
make

The CMakeLists.txt has two targets, plugin and tool, use <MAKE_CMD> <target> to build a specific target.

The target tool has been successfully built in Ubuntu, make sure the executable flang- is in the path, as well as the path /usr/lib/llvm-<VERSION>.

Dependencies

Node.js is required to build this project

# Required for all targets
sudo apt install flang-20 libflang-20-dev llvm-20-dev libmlir-20-dev mlir-20-tools

WSL Support

Flang 20 requires at least Ubuntu 25.04. If this distribuition is not available in WSL, you can follow these steps:

  • Get the WSL image
  • Import the downloaded image, e.g., wsl --import "Ubuntu25.04" <install_path> ubuntu-25.04-wsl-amd64.wsl
  • You can check if it is installed with wsl -l -v
  • Execute the distribution with wsl -d Ubuntu25.04

About

Dumper of flang's AST into a JSON format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •