Overview
GnuCOBOL implements substantial portions of COBOL 85, COBOL 2002, COBOL 2014, and common vendor extensions. It translates COBOL into C and uses the platform's native C compiler and linker to produce executables on Unix/Linux, macOS, Windows, and other systems.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Translate COBOL to C and reuse native compiler infrastructure
The cobc compiler lowers COBOL source to C and invokes the host toolchain to create objects and executables.
Support multiple COBOL standards and runtime features
The project implements multiple COBOL standards and extensions, with libcob providing runtime services and file-handling behavior.
For building and testing legacy COBOL code on modern systems
GnuCOBOL fits education, migration analysis, local development, CI, and modernization workflows around existing COBOL applications.
Understand the GitHub clone and mixed GPL/LGPL licensing
This repository is a clone of the upstream SourceForge project. Compiler programs are GPLv3 while lib/libcob are LGPLv3, so distribution should be reviewed component by component.
Official sources
- [1]OCamlPro/gnucobol GitHub clone(2026-09-20)
- [2]GnuCOBOL README(2026-09-20)
- [3]GnuCOBOL GPLv3(2026-09-20)
- [4]GnuCOBOL LGPLv3 runtime license(2026-09-20)
- [5]GNU GnuCOBOL project(2026-09-20)
Supplemental curator note
This GitHub repository describes itself as a clone of the SourceForge GnuCOBOL source. Compiler programs are GPLv3 while lib and libcob runtime components are LGPLv3. Consult the GNU/Savannah/SourceForge upstream resources as well as this mirror.
Try it in 3 steps
- 1
Install GnuCOBOL and verify the compiler
Install GnuCOBOL through your OS package manager or the upstream instructions and confirm cobc is available.
cobc -V - 2
Create a minimal COBOL program
Create a small free-format Hello World program.
printf 'identification division.\nprogram-id. hello.\nprocedure division.\n display "Hello from COBOL".\n stop run.\n' > hello.cob - 3
Compile to a native executable and run it
Verify the basic COBOL-to-C/native-toolchain compilation path.
cobc -x -free hello.cob -o hello && ./hello
Growth
Growth trends · Last 30 days
70 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 24
- Open PRs
- 49
- Issues opened
- 9
- Issues closed
- 1
- PRs opened
- 18
- PRs merged
- 1
Issues
9 / 1
Pull requests
18 / 1
Maintenance
- Median first response
- 8.1 hr
- Issue response rate
- 12.5% (1/8)
Based on up to the 100 newest issues opened by external users in the last 90 days. A first comment from an OWNER, MEMBER, or COLLABORATOR counts as a response; issues whose full comment history cannot be checked are excluded. The median and response rate update weekly.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- cobol
- Stars
- 70
- Forks
- 50
- Watchers
- 10
- Open issues
- 27
- Contributors
- 5
- Primary language
- C
- License
- LGPL-3.0
- Repository last updated
- Sep 17, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- React250,594 Stars
A JavaScript library for building web and native user interfaces from declarative components.
JavaScript - Visual Studio Code192,699 Stars
The MIT-licensed Code - OSS repository that forms the open foundation of Visual Studio Code.
TypeScript - Flutter179,011 Stars
A BSD-3-Clause cross-platform SDK for building mobile, web, and desktop UIs from a Dart codebase.
Dart - Bootstrap174,857 Stars
A responsive, mobile-first web framework built from CSS and JavaScript grids, utilities, and components.
MDX - LangChain146,686 Stars
A Python framework that connects models, tools, retrieval systems, and other components for LLM applications and agents.
Python
Report incorrect information
Tell us if any listing information is incorrect or outdated.