Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module file support #8

Open
ppenzin opened this issue Jan 6, 2018 · 0 comments
Open

Module file support #8

ppenzin opened this issue Jan 6, 2018 · 0 comments

Comments

@ppenzin
Copy link
Contributor

ppenzin commented Jan 6, 2018

Second part of the module support - emitting and consuming module files.

It is probably possible to keep Fort's module files compatible with GNU Fortran. I don't have a definition for the format yet, besides it being a gzipped text file:

$ cat test.f90 
module test
  integer x
end module
$ gfortran -fsyntax-only test.f90 
$ cp test.mod test_mod.txt.gz
$ gunzip tes_modt.txt.gz 
$ cat test_mod.txt 
GFORTRAN module version '14' created from test.f90
(() () () () () () () () () () () () () () () () () () () () () () () ()
() () ())

()

()

()

()

()

(2 'test' 'test' '' 1 ((MODULE UNKNOWN-INTENT UNKNOWN-PROC UNKNOWN
UNKNOWN 0 0) () (UNKNOWN 0 0 0 0 UNKNOWN ()) 0 0 () () 0 () () 0 0)
3 'x' 'test' '' 1 ((VARIABLE UNKNOWN-INTENT UNKNOWN-PROC UNKNOWN UNKNOWN
0 0) () (INTEGER 4 0 0 0 INTEGER ()) 0 0 () () 0 () () 0 0)
)

('test' 0 2 'x' 0 3)

@ppenzin ppenzin mentioned this issue Jan 6, 2018
11 tasks
@ppenzin ppenzin added this to the 7.0 milestone Jan 16, 2018
@ppenzin ppenzin modified the milestones: 7.0, 8.0 Jan 4, 2019
@ppenzin ppenzin removed this from the 8.0 milestone Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant