Watcom C/C++ (currently Open Watcom C/C++ ) is an integrated development environment (IDE) product from Watcom International Corporation for the C , C++ , and Fortran programming languages . Watcom C/C++ was a commercial product until it was discontinued, then released under the Sybase Open Watcom Public License as Open Watcom C/C++. It features tools for developing and debugging code for DOS , OS/2 , Windows , and Linux operating systems , which are based upon 16-bit x86 , 32-bit IA-32 , or 64-bit x86-64 compatible processors.
19-724: Though no longer sold commercially by Sybase , the Watcom C/C++ compiler and the Watcom Fortran compiler have been made available free of charge as the Open Watcom package. Stable version 1.9 was released in June 2010. A forked version 2.0 beta was released that supports 64-bit hosts (Windows and Linux), built-in text editor, 2-phase build system, and the DOS version supports long filenames (LFN). The Open Watcom Wiki has
38-488: A comprehensive history. The Open Source Initiative has approved the license as open source , but Debian , Fedora and the Free Software Foundation have rejected it because "It requires you to publish the source code publicly whenever you “Deploy” the covered software, and “Deploy” is defined to include many kinds of private use." The compiler can be operated from, and generate executable code for,
57-740: Is retargetable. In the mid-1990s some of the most technically ambitious DOS computer games such as Doom , Descent , Duke Nukem 3D , Rise of the Triad , and Tomb Raider were built using Watcom C/C++ using the DOS/4GW protected mode extender with the Watcom compiler. It was used to port the game Retro City Rampage to DOS in 2015. It is used by VirtualBox to compile the BIOS . Current development for FreeDOS requires that all C source code must be compilable by Open Watcom C. Open Watcom
76-511: Is still used to refer to the standard. While some software developers use the term ISO C, others are standards-body neutral and use Standard C. Informal specification in 1978 ( Brian Kernighan and Dennis Ritchie book The C Programming Language ). In 1983, the American National Standards Institute formed a committee, X3J11, to establish a standard specification of C. In 1985, the first Standard Draft
95-495: Is the recommended compiler for application and driver development for the OS/2-based ArcaOS operating system. There is an unofficial fork of Open Watcom V2 on GitHub . A variant of the 16bit DOS CRT library startup was created with WASM . Open Watcom's syntax supports many conventions introduced by other compilers, such as Microsoft 's and Borland 's, including differing conventions regarding (for instance)
114-497: Is used to distinguish it from C90 but using the same labeling method. The same standard as C89 was ratified by ISO/IEC as ISO/IEC 9899:1990, with only formatting changes, which is sometimes referred to as C90. Therefore, the terms "C89" and "C90" refer to a language that is virtually identical. This standard has been withdrawn by both ANSI/INCITS and ISO/IEC. In 1995, the ISO / IEC published an extension, called Amendment 1, for
133-436: Is virtually guaranteed to compile correctly on any platform with a conforming C implementation. Without such precautions, most programs may compile only on a certain platform or with a particular compiler, due, for example, to the use of non-standard libraries, such as GUI libraries, or to the reliance on compiler- or platform-specific attributes such as the exact size of certain data types and byte endianness . To mitigate
152-454: The DOS , OS/2 , Windows , Linux operating systems . It also supports NLM targets for Novell NetWare . There is ongoing work to extend the targeting to Linux and modern BSD (e.g., FreeBSD ) operating systems, running on x86 , PowerPC , and other processors. The code is portable and, like many other open source compiler projects such as GCC or LCC the compiler backend (code generator)
171-574: The C language: More technical specifications are in development and pending approval, including the fifth and final part of TS 18661, a software transactional memory specification, and parallel library extensions. ANSI C is now supported by almost all the widely used compilers. GCC and Clang are two major C compilers popular today, both based on the C11 with updates including changes from later specifications such as C17. Any source code written only in standard C and without any hardware dependent assumptions
190-465: The C standard. Its full name finally was ISO/IEC 9899:1990/AMD1:1995 or nicknamed C95 . Aside from error correction there were further changes to the language capabilities, such as: In addition to the amendment, two technical corrigenda were published by ISO for C90: In March 2000, ANSI adopted the ISO/IEC 9899:1999 standard. This standard is commonly referred to as C99. Some notable additions to
209-484: The differences between K&R C and the ANSI C standard, the __STDC__ ("standard c") macro can be used to split code into ANSI and K&R sections. In the above example, a prototype is used in a function declaration for ANSI compliant implementations, while an obsolescent non-prototype declaration is used otherwise. Those are still ANSI-compliant as of C99. Note how this code checks both definition and evaluation: this
SECTION 10
#1732802270511228-457: The library ( stdatomic.h ). One technical corrigendum has been published by ISO for C11: As of October 2018 , "C17" is the current standard for the C programming language . C17 addresses defects in C11 without introducing new language features. C23 is the informal name for the next major C language standard revision. As part of the standardization process, ISO/IEC also publishes technical reports and specifications related to
247-437: The names referred specifically to the original and best-supported version of the standard (known as C89 or C90 ). Software developers writing in C are encouraged to conform to the standards, as doing so helps portability between compilers. The first standard for C was published by ANSI. Although this document was subsequently adopted by ISO/IEC and subsequent revisions published by ISO/IEC have been adopted by ANSI, "ANSI C"
266-454: The number of leading underscores on the "asm" tag. Code written specifically for another compiler rather than standard-compliant C or C++ will often compile with the Watcom compiler. The compiler supports C89/C90 standards by default. Open Watcom supports partial compatibility with the C99 standard. It implements the most commonly used parts of the standard. However, they are enabled only through
285-465: The previous standard include: Three technical corrigenda were published by ISO for C99: This standard has been withdrawn by both ANSI/INCITS and ISO/IEC in favour of C11. C11 was officially ratified and published on December 8, 2011. Notable features include improved Unicode support, type-generic expressions using the new _Generic keyword, a cross-platform multi-threading API ( threads.h ), and atomic types support in both core language and
304-574: The undocumented command-line switch "-za99". Three C99 features have been bundled as C90 Extension since pre-v1.0: C++ style comments (//), flexible array members, trailing comma allowed in enum declaration. The compiler currently doesn't support any new major C11 features, though the C library does include "Safe C" functions. It is specified in ISO/IEC TR 24731-1 and known as "Bounds-checking interfaces (Annex K)" in C11. Some function name examples are strcpy_s(), memcpy_s(), printf_s(). This library
323-742: Was acquired by SAP in 2010; SAP ceased using the Sybase name in 2014. ANSI C ANSI C , ISO C , and Standard C are successive standards for the C programming language published by the American National Standards Institute (ANSI) and ISO/IEC JTC 1/SC 22 /WG 14 of the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC). Historically,
342-656: Was released along with Open Watcom 1.5 in April 2006. In a February 1989 overview of optimizing C compilers, BYTE praised Watcom C 6.5's "unmatched execution speed" and noted that it was the most ANSI C -compliant. The magazine advised, "If speed is absolutely critical and OS/2 compatibility isn't, choose Watcom". Sybase Sybase, Inc. was an enterprise software and services company. The company produced software relating to relational databases , with facilities located in California and Massachusetts . Sybase
361-408: Was released, sometimes referred to as C85 . In 1986, another Draft Standard was released, sometimes referred to as C86 . The prerelease Standard C was published in 1988, and sometimes referred to as C88 . The ANSI standard was completed in 1989 and ratified as ANSI X3.159-1989 "Programming Language C." This version of the language is often referred to as "ANSI C". Later on sometimes the label "C89"
#510489