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 rc-2 close to 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-2017 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
Install went smoothly on OSX, everything works great!
One of the best compilers I found
We are doing amazing things with GnuCOBOL, it is an awesome product if you don't use it sorry! your loss. We migrated our application and we are developing with GnuCOBOL and i can assure you we have never had any problem.
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 PS: gnu cobol does support INITIALISE statement mf cobol does NOT support INITIALISE statement +1 to gnu cobol