Stdlib in Compiler Explorer

The Compiler Explorer platform recently announced that it would be possible to add libraries for the different languages available therein.

They have delivered and thanks to @gnikit who opened a PR on their side it is now possible to access stdlib. Currently it is only available for gfortran (trunk and 13.2):

Chose Fortran as the language, then “Add new > Execution Only”, click on Libraries

image

And now pick stdlib from the available libs:

You can now test algorithms from stdlib, for instance by simply choosing from the examples

Happy coding :slight_smile:

17 Likes