Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • lfortran lfortran
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 432
    • Issues 432
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 72
    • Merge requests 72
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lfortranlfortran
  • lfortranlfortran
  • Issues
  • #52
Closed
Open
Issue created Feb 24, 2019 by Ondřej Čertík@certikOwner

Allow to "use" modules compiled by gfortran

One can compile production code with gfortran, which produces gfortran specific mod files. Those can already be parsed by lfortran.adapters.gfortran.mod, which creates an equivalent ASR representation of the module.

Now we just need to allow them to be used "out of the box" with LFortran simply by "using" them:

use some_mod, only: some_fun
call some_fun(5)

where some_mod was compiled with gfortran.

Later we can add support for other Fortran compilers also (#56).

This will allow to use LFortran with production codes right away. Simple functions in a module would work, and for more complex functionality not yet implemented by LFortran all one has to do is to write a simple module, compile with gfortran, and then use in LFortran interactively.

Note: a related project is gfort2py, which down the road can hopefully use lfortran.adapters.gfortran.mod so that they do not have to maintain their own parser.

Edited Mar 24, 2019 by Ondřej Čertík
Assignee
Assign to
Time tracking