Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Home

GNU Cobol (1)
Simon Sobisch Brian Tiffin

GNU Cobol

GNU Cobol is a free COBOL compiler. Built with GNU autotools, ./configure, make.

OpenCOBOL

GNU Cobol is the new name for OpenCOBOL. September 27th, 2013 OpenCOBOL was accepted as an official GNU project, and renamed to GNU Cobol.

Features of GNU Cobol

  • cobc translates COBOL source code to native executable using intermediate C sources. There is also a version, GNU Cobol C++, gnu-cobol-cpp, that generates C++ intermediates.

    • This step in the compile chain, along with the GNU Cobol dynamic CALL verb implementation, exposes nearly all existing C libraries for direct use by COBOL programmers. (C++ linker for gnu-cobol-cpp).
  • builds executable, shared library, object file and listing from a well integrated cobc command. COBOL and C sources can be mixed in compiler command lines.

  • GNU Cobol passes over 9700 of the tests included in the National Institute of Standards and Technology COBOL 85 acceptance test suite.

  • supports many extensions from other COBOL compilers and adds some nice bits only available with GNU Cobol.

  • GNU Cobol does NOT claim any level of official COBOL standard support or compliance.

Downloads

currently, version 1.1

Versions

  • GNU Cobol 1.1 has been marked release, with support for SCREEN SECTION

  • SourceForge SVN also hosts newer versions:

    • 2.0 - upcoming release
    • Report Writer branch (stamped as 2.1, will be merged into 2.0)
    • CPP with C++
    • a fileio simplification
    • and an experimental feature branch

See http://sourceforge.net/p/open-cobol/code/HEAD/tree/branches/

Documentation

Can be found at http://opencobol.add1tocobol.com/guides. Direct link to two docs:

License

GNU Cobol is

Copyright (C) 2001-2009 Keisuke Nishida
Copyright (C) 2007-2012 Roger While
Copyright (C) 2012 Simon Sobisch
Copyright (C) 2012 Sergey Kashyrin
Copyright (C) 2013 Ron Norman

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 Free Software Foundation; either version 2 (for OpenCOBOL and
GNU Cobol versions prior to 2.0), or version 3 (for GNU Cobol 2.0 or
later) or (at your option) any later version.

Files in the libcob/ directory, the GNU Cobol run time system, are
licensed under the LGPL 2 (LGPL 3 for 2.0 and up).

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

More details

The wiki has pages for

SourceForge info

Project Admins:

Related

Discussion: GNU Cobol is now a real thing
Wiki: Features
Wiki: For Maintainers
Wiki: GNU Cobol ToDone
Wiki: GNU Cobol project members
Wiki: Gary Cutler Files
Wiki: Install Guide
Wiki: Tasks
Wiki: User Manual