![](/uploads/1/2/6/5/126551120/277944784.jpg)
Hi Brutis4246,'I want to download a free cobol compiler for windows 10 that works. Any suggestions?' If you want to compiler COBOL on Windows, you could download and use (formerly OpenCOBOL). You also could study COBOL and write COBOL code online.Best Regards,Li WangWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.Click to participate the survey. Hi Brutis4246,'I want to download a free cobol compiler for windows 10 that works.
'How to install GNU Cobol (formerly OpenCOBOL)' is not written yet. Download File. 1, MinGW - Minimalist GNU for Windows (156,152). 7, Linux Lite (7,215).
Any suggestions?' If you want to compiler COBOL on Windows, you could download and use (formerly OpenCOBOL). You also could study COBOL and write COBOL code online.Best Regards,Li WangWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.Click to participate the survey.
Original author(s) | Keisuke Nishida, Roger While |
---|---|
Developer(s) | Edward Hart, Sergey Kashyrin, Ron Norman, Simon Sobisch and many others. |
Initial release | 25 January 2002; 17 years ago |
Stable release | |
Preview release | 3.0rc-1 / 22 April 2018; 20 months ago |
Repository | |
Written in | C, with a C++ branch |
Size | 1 MB |
Available in | English, German, Italian, Japanese, Spanish |
Type | Programming language |
License | GPL with runtime libraries under LGPL |
Website | open-cobol.sourceforge.net |
GnuCOBOL (formerly OpenCOBOL, and for a short time known as GNU Cobol) is a free implementation of the COBOL programming language. Originally designed by Keisuke Nishida, lead development was taken up by Roger While. Latest developments are now led by Simon Sobisch, Sergey Kashyrin, Ron Norman, Edward Hart and many others.[1]
- 4Example programs
History[edit]
While working with Rildo Pragana on TinyCOBOL, Keisuke decided to attempt a COBOL compiler suitable for integration with gcc. This soon became the OpenCOBOL project. Keisuke worked as the lead developer until 2005 and version 0.31. Roger then took over as lead and released OpenCOBOL 1.0 on 27 December 2007. Work on the OpenCOBOL 1.1 pre-release continued until February 2009. In May 2012, active development was moved to SourceForge, and the pre-release of February 2009 was marked as a release.[2] In late September 2013, OpenCOBOL was accepted as a GNU Project, renamed to GNU Cobol, and then finally to GnuCOBOL in September 2014.[3] Ron Norman has added a Report Writer module as a branch of GnuCobol 2.0, and Sergey Kashyrin has developed a version that uses C++ intermediates instead of C.[4]
Latest current release is now v2.2 Final, issued 7 September 2017.
Transfer of copyrights to the Free Software Foundation over GnuCOBOL source code (including versions with GNU Cobol and OpenCOBOL spellings) was finalized on 17 June 2015.[5]
Philosophy[edit]
While striving to keep in line with COBOL Standards up to the current COBOL 2014 specification, and also to include features common in existing compilers, the developers do not claim any level of standards conformance.[6] Even so, the 2.2 Final release passes over 9,688 (99.79%) of the tests included in the NIST COBOL 85 test suite, out of 9,708 (as 20 are deleted).[7]
GnuCOBOL translates a COBOL program (source code) into a C program. The C program can then be compiled into the actual code used by the computer (object code) or into a library where other programs can call (link to) it. Under UNIX and similar operating systems (such as Linux) the GNU C compiler is used. For Windows, Microsoft’s Visual Studio Express package provides the C compiler. The two step compilation is usually performed by a single command, but an option exists to allow the programmer to stop compilation after the C code has been generated.[8]
Documentation[edit]
The opencobol.org site was the official home of the development team from 2002 until 2012, and was the best source of upstream development information.[9] However, all recent developments are now taking place within a SourceForge project space at http://sourceforge.net/projects/open-cobol/ and this project space also hosts the latest GnuCOBOL documentation and information.
The OpenCOBOL Programmer's Guide, by Gary Cutler, was published under the GNU Free Documentation License.[8]It has been updated to include GnuCOBOL with Report Writer and is listed in the GnuCOBOL documentation overview page with latest versions in the code tree.[10]
Example programs[edit]
Historical[edit]
![Running cobol on linux Running cobol on linux](/uploads/1/2/6/5/126551120/429364008.jpg)
Compilation and execution:
Modern, free format[edit]
Compilation and execution:
Shortest[edit]
The shortest valid COBOL program, with the relaxed syntax option in GnuCOBOL 2.0, is a blank file. Compilation and execution:
For earlier versions and with relaxed syntax:
Compilation and execution:
Without relaxed syntax and with any version of GnuCOBOL, GNU Cobol or OpenCOBOL. (Note, there are 7 leading spaces to conform to FIXED layout COBOL source):
Compilation occurs without errors:
Please note that these trivia listings are not to be regarded as good COBOL form; COBOL was designed to be a readable English programming language.
Implementation[edit]
The parser and lexical scanner use Bison and Flex. The GPL licensed compiler and LGPL licensed run-time libraries are written in C and use the C ABI for external program linkage.
Build packaging uses the GNU Build System. Standard tests with
make check
use Autoconf, ANSI85 testsuite run by make test
use Perl scripts.The configure script that sets up the GnuCOBOL compile has options that include:
- choice of C compiler and its options for post translation compilation
- database management system for ISAM support
- inclusion of iconv
Availability[edit]
- 1.0 release from SourceForge.[11]
- 1.1 release from SourceForge[12]
- 2.0 development release from SourceForge[13]
- open-cobol Debian package.[14]
- 2.2 Final, released 7 September 2017 from SourceForge[15]
- 2.2 Documentation, released September 2017 from the SourceForge Code Tree.
References[edit]
- ^Tiffin, Brian (19 October 2013). 'OpenCOBOL FAQ'. What is the development history of OpenCOBOL?. Retrieved 13 December 2013.
- ^Tiffin, Brian (19 October 2013). 'OpenCOBOL FAQ'. What is the current version of OpenCOBOL?. Retrieved 13 December 2013.
- ^Tiffin, Brian. 'GNU Cobol is now a real thing'. Archived from the original on 5 October 2013. Retrieved 1 October 2013.
- ^Sobisch, Simon (6 November 2013). 'Work in Progress'. GNU Cobol 2.0 C++.
- ^Tiffin, Brian. 'State of the Project'. Retrieved 23 July 2015.
- ^'OpenCOBOL FAQ'. 17 October 2013. How complete is OpenCOBOL?. Retrieved 7 June 2014.
While OpenCOBOL can be held to a high standard of quality and robustness, the authors DO NOT claim it to be a “Standard Conforming” implementation of COBOL.
- ^'OpenCOBOL FAQ'. Does OpenCOBOL pass the NIST Test Suite?. Retrieved 9 October 2013.
- ^ abCutler, Gary. 'OpenCOBOL Programmer's Guide'(PDF). Opencobol.addltocobol.com. Retrieved 20 November 2012.
- ^'An open-source COBOL compiler'. OpenCOBOL. Retrieved 20 November 2012.
- ^Cutler, Gary. 'GnuCOBOL Guides'. Opencobol.addltocobol.com. Retrieved 22 July 2015.
- ^'GnuCOBOL - Browse Files at'. Sourceforge.net. 27 December 2007. Retrieved 28 October 2015.
- ^GnuCOBOL downloads at SourceForge
- ^GnuCOBOL downloads at SourceForge
- ^Debian package details
- ^GnuCOBOL downloads at SourceForge
External links[edit]
- GnuCOBOL on SourceForge.net
- tiny-cobol on SourceForge.net
Retrieved from 'https://en.wikipedia.org/w/index.php?title=GnuCOBOL&oldid=926628392'
![](/uploads/1/2/6/5/126551120/277944784.jpg)