Story Details

  • COBOL front-end added to GCC

    Posted: 2025-05-06 02:07:45

    GCC 15 introduces experimental support for COBOL as a front-end language. This allows developers to compile COBOL programs using GCC, leveraging its optimization and code generation capabilities. The implementation supports a substantial subset of the COBOL 85 standard, including features like nested programs, intrinsic functions, and file I/O. While still experimental, this addition paves the way for integrating COBOL into the GNU compiler ecosystem and potentially expanding the language's usage in new environments.

    Summary of Comments ( 2 )
    https://news.ycombinator.com/item?id=43901191

    Several Hacker News commenters expressed surprise and interest in the addition of a COBOL front-end to GCC, some questioning the rationale behind it. A few pointed out the continued usage of COBOL in legacy systems, particularly in financial and government institutions, suggesting this addition could ease migration or modernization efforts. Others discussed the technical challenges of integrating COBOL, a language with very different paradigms than those typically handled by GCC, and speculated on the completeness and performance of the implementation. Some comments also touched upon the potential for attracting new COBOL developers with more modern tooling. The thread contains some lighthearted banter about COBOL's perceived age and complexity as well.