GnuCOBOL (formerly OpenCOBOL) is a free COBOL compiler. cobc translates COBOL source to executable using intermediate C, designated C compiler and linker.
OpenCOBOL 1.1 became GNU Cobol 1.1 in 2013. Official releases at ftp://ftp.gnu.org/gnu/gnucobol
GnuCOBOL 2.0 is on its way to pre-release. All versions, old and new, hosted here.
A programmer's guide, by Gary Cutler, and other documentation, is indexed at
OpenCOBOL was written by Keisuke Nishida and Roger While, from 2001 to 2012.
GnuCOBOL is also authored by Simon Sobisch, Sergey Kashyrin, and Ron Norman.
Others listed in AUTHORS.
Copyright 2001-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the FSF; either version 3, or (at your option) any later version.
The libcob run time support source tree is licensed LGPL.
- A nicely complete implementation of COBOL with nearly seamless C integration
- Over 9700 NIST COBOL 85 test suite tests passed, over 500 internal checks
- Direct access to almost all C libraries, and even more with the C++ base
- Compiler built with GNU Autotools, also successfully builds with LLVM clang
- CGI capable and desktop ready, GTK+ screens have been demonstrated
- EXEC SQL preprocessors available for PostgreSQL, Firebird, ODBC, DB2
- REPORT SECTION, SCREEN SECTION, FUNCTION-ID support
- ASCII, EBCDIC, little endian, big endian. A build published for z/OS OMVS/USS
- Compiler messages translated; english, spanish, japanese, more to come
- Almost full support of the COBOL 2014 Compiler Directing Facility feature set
Installed 2.0 RC1 on Windows using Visual Studio Community, took all of 10 minutes to set up the project and build the compiler. Using it to migrate a system, 1.2 million lies of code, written in REALIA COBOL from 1986. So far 25 modules have been compiled with only minor changes to the source. Using OpenCOBOLIDE to edit, compile and test each system component. If anyone is interested I can provide a Windows self install exe to install the compiler under WINDOWS 7,8 and 10. Minor changes to OpenCOBOLIDE configuration will provide a integrated development environment. The original system used a screen management system written by the folks at NORCOM back in 1985. Great product which simplified full screen development under MS-DOS. For the conversion to GnuCOBOL I will be using they new package GUIScreenIO. Simplifies the development of COBOL programs using GnuCobol for WINDOWS. While is is not opensource, the product, it is not priced out of reach and, for the time saved, it is well worth the cost. screenio.com.
finished porting half million of lines from MF it works now
So far no complaints. Have used it to write a farily extensive program on Linux and FreeBSD and it works just great!
great product and toolset for migrating, integrating and transforming these infamous cobol beasts on the hosts. The openness of C enables amazing portability aspect. If you have the option of chosing a platform/operating system, I strongly recommend to go along with one of the unix brands (ubuntu, linux) and rather restrain from windows - where the cygwin etc issues often pose problems. Of course - be honest to your self - you cannot expect the same support efficiency and reaction times like for example from MF-Cobol ... but it's still amazing enough.
Great compiler for every job production and test. perfect