{"id":20214000,"url":"https://github.com/steleman/fc","last_synced_at":"2026-03-19T14:35:52.242Z","repository":{"id":75000390,"uuid":"233339508","full_name":"steleman/fc","owner":"steleman","description":"LLVM based Fortran frontend","archived":false,"fork":false,"pushed_at":"2019-08-17T12:46:39.000Z","size":352,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-03T18:59:49.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-12T04:46:49.000Z","updated_at":"2023-09-14T19:19:35.000Z","dependencies_parsed_at":"2023-02-26T16:16:32.171Z","dependency_job_id":null,"html_url":"https://github.com/steleman/fc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steleman/fc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Ffc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Ffc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Ffc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Ffc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steleman","download_url":"https://codeload.github.com/steleman/fc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steleman%2Ffc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30282557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T06:13:26.677Z","updated_at":"2026-03-09T04:04:00.839Z","avatar_url":"https://github.com/steleman.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# **FC - LLVM Based fortran frontend**\n\nA new front end for Fortran has been written in the design spirit of LLVM/Clang. Approximately 20000 lines of code effort has got close to Fortran 95 standard. The Front end is complete end to end solution without semantic analysis. It compiles 400+ unit test cases and 2 SPEC CPU 2017 benchmarks.\n\n### Dependencies\n```\nLLVM 7.0 - Can be built from source or prebuilt binaries can be used.\ngfortran (for running unit tests)\n```\n\n## Build instructions\n```\n1. Set following environment variables\n    a. CLANG_BINARY=\u003cpath/to/llvm/instal\u003ebin/clang\n    b. PATH=\u003cpath/to/llvm/install/\u003e/bin:$PATH\n    c. LD_LIBRARY_PATH=\u003cpath/to/install/\u003e/lib;$PATH\n2. mkdir build \u0026\u0026 cd build\n3. cmake -G Ninja -DLLVM_DIR=\u003cpath/to/llvm\u003e/lib/cmake/llvm/ ../fc -DCMAKE_INSTALL_PREFIX=\u003cinstall-prefix\u003e -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\n4. ninja install\n5. ninja test\n\n\nNote that clang-7.0 is already in your PATH. This will be used for building FC.\n```\n\n## Running HelloWorld\n\n```\n$ cat hello.f90\nprogram hello\n  print *, \"Hello world!\"\nend program hello\n$ export CLANG_BINARY=\u003cpath/to/llvm/install\u003e/bin/clang\n$ export LD_LIBRARY_PATH=\u003cpath/to/fc/install\u003e/lib:$LD_LIBRARY_PATH\n$ \u003cpath/to/fc\u003e/bin/fc hello.f90\n$ ./a.out\nHello world!\n```\n\n## Running test\n\n```\ncd build\nctest \n```\nOR\n\n```\ncd build\nninja test\n```\n\n## Compiling input file to AST\n\n```\nfc \u003cinputfile\u003e -emit-ast\n```\nOR\n```\nfc \u003cinputfile\u003e -emit-ast -o \u003cast_output_file\u003e\n```\n\n## Emitting LLVM IR\n```\nfc \u003cinputfile\u003e -emit-llvm\n```\n\n## Emitting LLVM BC\n\n```\nfc \u003cinputfile\u003e -emit-bc\n```\n\n## Fortran standard \nFortran  standard can be specified via -std=f77 or -std=f95. If not specified standard is derived from file extension. Source files with \".f\" are compiled to F77 standard and all other extensions are compiled to default standard.\n\n### Enter following command for more options\n```\nfc --help\n```\n\n## Developed by\n[CompilerTree Technologies](http://compilertree.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteleman%2Ffc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteleman%2Ffc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteleman%2Ffc/lists"}