Watcom C/C++#History

{{Short description|Commercial product for developing code}}

{{Infobox software

| name = Open Watcom C/C++

| logo = Watcom logo.png

| screenshot =

| caption =

| collapsible =

| author = Watcom

| developer = Sybase, SciTech Software

| released = {{Start date and age|1988|br=yes}}

| latest release version = 2.0 (continuous updates)

| latest release date = {{Start date and age|2024|12|04|br=yes}}{{Cite web |title=Current-build |url=https://github.com/open-watcom/open-watcom-v2/releases |access-date=2024-12-09 |website=GitHub |language=en}}

| repo = {{URL|https://github.com/open-watcom/open-watcom-v2}}

| programming language = C, C++

| operating system = DOS, Windows, OS/2, Linux

| size = 66–84 MB

| platform = x86, IA-32, x86-64

| language =

| genre = Integrated development environment

| license = Sybase Open Watcom Public License version 1.0

| website = {{URL|openwatcom.org}} , {{URL|https://github.com/open-watcom/open-watcom-v2}}

}}

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.

History

In 2000, Sybase, who owned Watcom International Corporation halted the commercial sale of the Watcom C/C++ and Fortran compilers. In 2003, SciTech Software Inc, a customer of Sybase, negotiated wth Sybase, to have the code for the compilers released as an open source project under a new name, Open Watcom.{{cite web |url=http://www.openwatcom.com/about.php |archive-date=April 29, 2016 |archive-url=https://web.archive.org/web/20160429054902/http://www.openwatcom.com/about.php |title=Open Watcom dot org About us |publisher=OpenWatcom.org wiki |url-status=dead}} The Watcom C/C++ compiler and the Watcom Fortran compiler were made available free of charge as the Open Watcom package.

The last stable version endorsed by the original openwatcom.org team was 1.9, released in June 2010.{{cite web |url=https://www.openwatcom.org/index.php/Main_Page |archive-date=January 18, 2015 |archive-url=https://web.archive.org/web/20150118220613/http://www.openwatcom.org/index.php/Main_Page |title=Latest Release (June 2010) - Open Watcom |publisher=OpenWatcom.org wiki |url-status=dead}}{{cite web |title=C Compiler Release Changes |url=https://www.openwatcom.org/index.php/C_Compilers_Release_Changes |website=Open Watcom |archive-url=https://web.archive.org/web/20150203100434/http://www.openwatcom.org/index.php/C_Compilers_Release_Changes |archive-date=February 3, 2015 |date=March 9, 2010 |url-status=dead}}

A community-based forked version 2.0 (with continuous updates under the same version moniker) was released after the original codebase was seemingly no longer developed by the original team. It includes miscellaneous bugfixes, supports 64-bit hosts (Windows and Linux), built-in text editor, 2-phase build system, and has a DOS version that supports long filenames (LFN).[https://open-watcom.github.io Open Watcom v2 Fork]

=Release history=

The Open Watcom Wiki has a comprehensive history.

{{Hidden begin

|titlestyle = background: #ccccff; font-size: 100%; width: 100%;

|header = Release history table

}}

class="wikitable"

! Date

ProductNotes
1984{{Nowrap|Waterloo C for S/370}}
1985{{sp}}* Work on current code generator codebase started
1988{{Nowrap|Watcom C 6.0}}* DOS host and target only

  • Included a debugger and full set of runtime libraries
  • Generated better code than other compilers at the time
  • Watcom C Version 6.5 contained Graphics Library similar to Microsoft Graphics Library
  • Real mode support only{{cn|date=August 2023}}
1989{{Nowrap|Watcom C 7.0}}
1989{{Nowrap|Watcom C 7.0/386}}* First 32-bit version, DOS host and target only
  • Supported Phar Lap DOS extender
  • Did not come with a linker or debugger
  • 1990{{Nowrap|Watcom C 8.0}}
    1990{{Nowrap|Watcom C 8.0/386}}* Added linker, librarian, debugger, and profiler
    1991{{Nowrap|Watcom C 8.5}}
    1991{{Nowrap|Watcom C 8.5/386}}* Shipped with DOS/4GW
  • Windows 3.0 supported (Win386 extender)
  • Unicode support
  • OS/2 hosted executables added
  • 1992{{Nowrap|Watcom C 9.0}}
    1992{{Nowrap|Watcom C 9.0/386}}* OS/2 2.0 host and target support
  • 486 optimizations
  • Based pointer support
  • {{sp}}{{Nowrap|Watcom C 9.01/386}}* Windows 3.1 support
    1993{{Nowrap|Watcom C/C++ 9.5}}
    1993{{Nowrap|Watcom C/C++ 9.5/386}}* C++ compiler added
  • Pentium optimizations
  • Windows NT host and target support
  • 1994{{Nowrap|Watcom C/C++ 10.0}}* MFC included
  • Precompiled header support
  • 16-bit and 32-bit tools merged into single package
  • Redesigned debugger
  • C++ class browser added
  • Windows resource editors added
  • Graphical IDE for Windows and OS/2
  • 1995{{Nowrap|Watcom C/C++ 10.5}}* Native C++ exception handling on OS/2 and Win32
  • Windows 95 and NT 3.5 support
  • TCP/IP remote debugging
  • 1996{{Nowrap|Watcom C/C++ 10.6}}* Structured exception handling in C
  • Improved compatibility with Microsoft compilers
  • 1997 Q1[https://web.archive.org/web/20001005050645/http://dynamic.sybase.com/press_releases/press_releases/ExternalItem/0,1099,6,00.html SYBASE INC. ANNOUNCES WATCOM C/C++ VERSION 11.0 Includes New Support For MMX Technology and Improved C++ language Support]{{Nowrap|Watcom C/C++ 11.0}}* Namespace, RTTI, and new style cast support in C++ compiler
  • 64-bit integer support
  • Multi-byte character support in libraries
  • Incremental linking support
  • COFF and ELF object file support in linker and librarian
  • Microsoft clone tools added
  • DLL based tools for better IDE integration
  • MMX support, including debugging
  • Pentium Pro optimizations, including branch prediction
  • Novell NLM support
  • 1998{{Nowrap|Watcom C/C++ 11.0B}}
    1999-06-30{{sp}}* Sybase issues end-of-life notice for Watcom C/C++ 11.0[https://web.archive.org/web/20001205233700/http://techinfo.sybase.com/css/techinfo.nsf/DocId/ID=20510 End of Life Notice for Watcom C/C++ Version 11.0]
    2000-08-22{{sp}}* Sybase announces open sourcing of Watcom tools[https://web.archive.org/web/20000925164208/http://www.sybase.com/detail/1,3151,1010040,00.html Sybase to Open Source Watcom C/C++ and Fortran Compilers - SciTech Software Selected as Official Maintainer for the Open Watcom Project]
    2001-09-27{{Nowrap|Watcom C/C++ 11.0c Beta}}
    2002-12-21{{Nowrap|Watcom C/C++ 11.0c}}
    2003-01-28{{Nowrap|Open Watcom 1.0}}
    2003-08-12{{Nowrap|Open Watcom 1.1}}
    2004-01-07{{Nowrap|Open Watcom 1.2}}
    2004-08-03{{Nowrap|Open Watcom 1.3}}
    2005-12-14{{Nowrap|Open Watcom 1.4}}
    2006-04-26{{Nowrap|Open Watcom 1.5}}
    2006-12-15{{Nowrap|Open Watcom 1.6}}
    2007-08-18{{Nowrap|Open Watcom 1.7}}
    2007-10-23{{Nowrap|Open Watcom 1.7a}}
    2009-02-21{{Nowrap|Open Watcom 1.8}}
    2010-06-02{{Nowrap|Open Watcom 1.9}}* Last version released via https://www.openwatcom.org/
    initial release: 2015-04-02
    continuous updates later on, up until at least 2025
    {{Nowrap|Open Watcom 2.0 Beta}}* GitHub V2 fork, numerous fixes
  • Open Watcom ported to 64-bit hosts (Windows and Linux)
  • Resource compiler and Resource editor support WIN64 executables
  • built-in text editor
  • two-phase build system
  • DOS version of tools support long filenames (LFN)
  • {{Hidden end}}

    License

    {{Main|Sybase Open Watcom Public License}}

    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."{{cite web|last1=Free Software Foundation|title=Various Licenses and Comments about Them|url=https://www.gnu.org/licenses/license-list.html#Watcom|website=GNU Operating System|access-date=Dec 23, 2014}}

    Design

    The compiler can be operated from, and generate executable code for, 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[https://web.archive.org/web/20150506003855/http://openwatcom.org/index.php/Installing_Open_Watcom_on_Linux Installing Open Watcom on Linux - Open Watcom]. OpenWatcom.org wiki. 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) is retargetable.

    Uses

    In the mid-1990s some of the most technically ambitious DOS computer games such as Doom,[https://web.archive.org/web/20210324032810/http://wiki.openwatcom.org/index.php/History History - Open Watcom]. OpenWatcom.com wiki. Descent, Duke Nukem 3D, Rise of the Triad,{{cite web|url=http://legacy.3drealms.com/faq/rottfaq30.txt|title=RotT was written in Watcom C++ v10.0 with the Rational Systems DOS/4GW extender}} 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.{{ cite web | url = https://www.gamedeveloper.com/programming/how-5-years-of-burning-ambition-brought-i-retro-city-rampage-i-to-dos |title=How 5 years of burning ambition brought Retro City Rampage to DOS |date=10 July 2015 |publisher=Gamasutra }}

    It was used by VirtualBox to compile the BIOS.{{Cite web|url=https://www.virtualbox.org/ticket/12011|title=#12011 (Compiling BIOS requires Open Watcom compiler)– Oracle VM VirtualBox|website=www.virtualbox.org|access-date=2017-06-17}}

    Current development for FreeDOS requires that all C source code must be compilable by Open Watcom C.{{cite web |title=FreeDOS Spec |url=http://wiki.freedos.org/wiki/index.php/FreeDOS_Spec |publisher=FreeDOS |archive-url=https://web.archive.org/web/20190501051417/http://wiki.freedos.org/wiki/index.php/FreeDOS_Spec |archive-date=May 1, 2019 |url-status=live}}

    Open Watcom is the recommended compiler for application and driver development for the OS/2-based ArcaOS operating system.{{cite web|url=https://www.arcanoae.com/wiki/information-for-developers/|title=Information for developers|website=arcanoae.com|access-date=2020-09-06}}

    Compatibility

    Open Watcom's syntax supports many conventions{{Which|date=October 2018}} introduced by other compilers, such as Microsoft's and Borland's, including differing conventions{{Which|date=October 2018}} regarding (for instance) 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 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.{{cite web|url=https://wiki.openwatcom.org/index.php/C99_Compliance |title=C99 compliance in Open Watcom |archive-url=https://web.archive.org/web/20210329095056/http://wiki.openwatcom.org/index.php/C99_Compliance |archive-date=2021-03-29}}

    The compiler currently doesn't support any new{{When|date=October 2018}} major C11 features, though the C library does include "Safe C" functions. It is specified in ISO/IEC TR 24731-1[https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1225.pdf ISO/IEC TR 24731-1; Extension to the C Library, Part 1: Bounds-checking interfaces.][https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1969.htm WG14 N1969 — "Updated Field Experience With Annex K — Bounds Checking Interfaces", Carlos O'Donell, Martin Sebor] and known as "Bounds-checking interfaces (Annex K)" in C11. Some function name examples are strcpy_s(), memcpy_s(), printf_s().{{cite web|url=http://wiki.openwatcom.org/index.php/Safer_C_Library |title=Open Watcom Safer C Library |access-date=2020-11-30}} This library was released along with Open Watcom 1.5 in April 2006.

    Reception

    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".{{Cite magazine |last1=Apiki |first1=Steven |last2=Udell |first2=Jon |date=February 1989 |title=Smoothing Out C |url=https://archive.org/details/eu_BYTE-1989-02_OCR/page/n225/mode/1up?view=theater |access-date=2024-10-08 |magazine=BYTE |pages=170–186}}

    See also

    References

    {{Reflist}}

    Further reading

    • [https://web.archive.org/web/19970712221411/http://www.byte.com/art/9410/sec12/art5.htm Watcom C/C++ Gets a New Face] – review in October 1994 BYTE magazine
    • [https://web.archive.org/web/20220304045500/http://www.azillionmonkeys.com/qed/watfaq.shtml The WATCOM C/C++ Programmer's FAQ]