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

GFortran? #549

Closed
zbeekman opened this issue Oct 4, 2017 · 7 comments · Fixed by #948
Closed

GFortran? #549

zbeekman opened this issue Oct 4, 2017 · 7 comments · Fixed by #948

Comments

@zbeekman
Copy link

zbeekman commented Oct 4, 2017

How involved is it to add a new compiler? It would be great to have GFortran added, many/most flags are shared with gcc.

@mattgodbolt
Copy link
Member

Pretty easy. The main problem is building all the compilers, which currently I do manually using scripts in the sister project mattgodbolt/compiler-explorer-image. They currently don't build fortran, but I can add it, then update the nodes etc.

Syntax colouring would need to be added too. That's fairly easy to do, but takes time.

This might all work better after #277 is implemented.

@zbeekman
Copy link
Author

zbeekman commented Oct 4, 2017

I'd love to see this implemented. I would probably be of more use updating mattgodbolt/compiler-explorer-image than I would implementing syntax highlighting...

@mattgodbolt
Copy link
Member

Amazingly I'm already building the fortran compilers (I forgot I enabled them already...)

ubuntu@ip-172-30-1-211:~$ /opt/compiler-explorer/gcc-7.2.0/bin/gfortran --version
GNU Fortran (GCC-Explorer-Build) 7.2.0

so, this is a step closer than I thought!

@zbeekman
Copy link
Author

zbeekman commented Oct 6, 2017 via email

@LadaF
Copy link

LadaF commented Oct 13, 2017

@zbeekman Indeed, one can currently invoke the gfortran frontend by -x f95 for those GCC versions for which gfortran is built. It is a nice feature.

@mattgodbolt
Copy link
Member

mattgodbolt commented Oct 13, 2017 via email

@dbroemmel
Copy link
Contributor

Since I was also interested in Fortran support for this amazing tool, I've started experimenting with it.
https://github.com/FZJ-JSC/compiler-explorer
I believe it's very basic for now, but it seems to work at least to some level. The build process for compilers is not touched, it rather relies on compilers it finds installed on the machine.

Initial bits on syntax highlighting are added as well, but I don't yet understand how it's supposed to work. I am aware of missing parts here and would also love to see indenting, but it's a start.

Not sure when I'll find the time to extend it further. If it reaches a more finished state I'll make a pull request (unless you feel a PR is worthwhile already).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants