Watcom C/C++

Last updated
Open Watcom C/C++
Original author(s) Watcom
Developer(s) Sybase, SciTech Software
Initial release1988;
36 years ago
 (1988)
Stable release
1.9 / June 2, 2010;
14 years ago
 (2010-06-02)
Preview release
2.0 / September 3, 2024;
53 days ago
 (2024-09-03) [1]
Repository github.com/open-watcom/open-watcom-v2
Written in C, C++
Operating system DOS, Windows, OS/2, Linux
Platform x86, IA-32, x86-64
Size 66–84 MB
Type Integrated development environment
License Sybase Open Watcom Public License version 1.0
Website openwatcom.org

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.

Contents

History

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. [2] [3]

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). [4]

Release history

The Open Watcom Wiki has a comprehensive history. [5] [3]

Release history table
DateProductNotes
1984Waterloo C for S/370
1985
  • Work on current code generator codebase started
1988Watcom 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[ citation needed ]
1989Watcom C 7.0
1989Watcom C 7.0/386
1990Watcom C 8.0
1990Watcom C 8.0/386
1991Watcom C 8.5
1991Watcom C 8.5/386
1992Watcom C 9.0
1992Watcom C 9.0/386
  • OS/2 2.0 host and target support
  • 486 optimizations
  • Based pointer support
Watcom C 9.01/386
1993Watcom C/C++ 9.5
1993Watcom C/C++ 9.5/386
1994Watcom C/C++ 10.0
1995Watcom C/C++ 10.5
1996Watcom C/C++ 10.6
1997 Q1 [6] 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
1998Watcom C/C++ 11.0B
1999-06-30
2000-08-22
  • Sybase announces open sourcing of Watcom tools [8]
2001-09-27Watcom C/C++ 11.0c Beta
2002-12-21Watcom C/C++ 11.0c
2003-01-28Open Watcom 1.0
2003-08-12Open Watcom 1.1
2004-01-07Open Watcom 1.2
2004-08-03Open Watcom 1.3
2005-12-14Open Watcom 1.4
2006-04-26Open Watcom 1.5
2006-12-15Open Watcom 1.6
2007-08-18Open Watcom 1.7
2007-10-23Open Watcom 1.7a
2009-02-21Open Watcom 1.8
2010-06-02Open Watcom 1.9
  • Current official version
2015-04-02Open Watcom 2.0 Beta
  • GitHub V2 fork, numerous fixes [4]
  • 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)

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." [9]

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 [10] 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 , [5] Descent , [5] Duke Nukem 3D , [5] Rise of the Triad , [11] 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. [12]

It is used by VirtualBox to compile the BIOS. [13]

Current development for FreeDOS requires that all C source code must be compilable by Open Watcom C. [14]

Open Watcom is the recommended compiler for application and driver development for the OS/2-based ArcaOS operating system. [15]

Variants

There is an unofficial fork [16] of Open Watcom V2 on GitHub. [17] A variant of the 16bit DOS CRT library startup was created with WASM. [18]

Compatibility

Open Watcom's syntax supports many conventions[ which? ] introduced by other compilers, such as Microsoft's and Borland's, including differing conventions[ which? ] 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. [19]

The compiler currently doesn't support any new[ when? ] major C11 features, though the C library does include "Safe C" functions. It is specified in ISO/IEC TR 24731-1 [20] [21] and known as "Bounds-checking interfaces (Annex K)" in C11. Some function name examples are strcpy_s(), memcpy_s(), printf_s(). [22] 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". [23]

See also

Related Research Articles

<span class="mw-page-title-main">Executable and Linkable Format</span> Standard file format for executables, object code, shared libraries, and core dumps.

In computing, the Executable and Linkable Format is a common standard file format for executable files, object code, shared libraries, and core dumps. First published in the specification for the application binary interface (ABI) of the Unix operating system version named System V Release 4 (SVR4), and later in the Tool Interface Standard, it was quickly accepted among different vendors of Unix systems. In 1999, it was chosen as the standard binary file format for Unix and Unix-like systems on x86 processors by the 86open project.

<span class="mw-page-title-main">Wine (software)</span> Windows compatibility software

Wine is a free and open-source compatibility layer to allow application software and computer games developed for Microsoft Windows to run on Unix-like operating systems. Developers can compile Windows applications against WineLib to help port them to Unix-like systems. Wine is predominantly written using black-box testing reverse-engineering, to avoid copyright issues. No code emulation or virtualization occurs. Wine is primarily developed for Linux and macOS.

<span class="mw-page-title-main">Netwide Assembler</span> Assembler for the Intel x86 architecture

The Netwide Assembler (NASM) is an assembler and disassembler for the Intel x86 architecture. It can be used to write 16-bit, 32-bit (IA-32) and 64-bit (x86-64) programs. It is considered one of the most popular assemblers for Linux and x86 chips.

x86-64 64-bit version of x86 architecture

x86-64 is a 64-bit version of the x86 instruction set, first announced in 1999. It introduced two new modes of operation, 64-bit mode and compatibility mode, along with a new 4-level paging mode.

Watcom International Corporation was a software company, which was founded in 1981 by Wes Graham and Ian McPhee. Founding staff were formerly members of Professor Graham's Computer Systems Group at the University of Waterloo, in Waterloo, Ontario, Canada. Watcom produced a variety of tools, including the well-known Watcom C/C++ compiler introduced in 1988.

RAR is a proprietary archive file format that supports data compression, error correction and file spanning. It was developed in 1993 by Russian software engineer Eugene Roshal and the software is licensed by win.rar GmbH. The name RAR stands for Roshal Archive.

<span class="mw-page-title-main">DJGPP</span> Implementation of the GNU toolchain for DOS

DJ's GNU Programming Platform (DJGPP) is a software development suite for Intel 80386-level and above, IBM PC compatibles which supports DOS operating systems. It is guided by DJ Delorie, who began the project in 1989. It is a port of the GNU Compiler Collection (GCC), and mostly GNU utilities such as Bash, find, tar, ls, GAWK, sed, and ld to DOS Protected Mode Interface (DPMI). Supported languages include C, C++, Objective-C/C++, Ada, Fortran, and Pascal.

<span class="mw-page-title-main">Free Pascal</span> Free compiler and IDE for Pascal and ObjectPascal

Free Pascal Compiler (FPC) is a compiler for the closely related programming-language dialects Pascal and Object Pascal. It is free software released under the GNU General Public License, with exception clauses that allow static linking against its runtime libraries and packages for any purpose in combination with any other software license.

<span class="mw-page-title-main">UEFI</span> Operating system and firmware specification

Unified Extensible Firmware Interface is a specification that defines an architecture for the platform firmware used for booting a computer's hardware and its interface for interaction with the operating system. Examples of firmware that implement the specification are AMI Aptio, Phoenix SecureCore, TianoCore EDK II, InsydeH2O.

The Microsoft Macro Assembler (MASM) is an x86 assembler that uses the Intel syntax for MS-DOS and Microsoft Windows. Beginning with MASM 8.0, there are two versions of the assembler: One for 16-bit & 32-bit assembly sources, and another (ML64) for 64-bit sources only.

A DOS extender is a computer software program running under DOS that enables software to run in a protected mode environment even though the host operating system is only capable of operating in real mode.

<span class="mw-page-title-main">UPX</span>

UPX is a free and open source executable packer supporting a number of file formats from different operating systems.

In C and related programming languages, long double refers to a floating-point data type that is often more precise than double precision though the language standard only requires it to be at least as precise as double. As with C's other floating-point types, it may not necessarily map to an IEEE format.

<span class="mw-page-title-main">DOS/4G</span>

DOS/4G is a 32-bit DOS extender developed by Rational Systems. It allows DOS programs to eliminate the 640 KB conventional memory limit by addressing up to 64 MB of extended memory on Intel 80386 and above machines.

On many computer operating systems, a computer process terminates its execution by making an exit system call. More generally, an exit in a multithreading environment means that a thread of execution has stopped running. For resource management, the operating system reclaims resources that were used by the process. The process is said to be a dead process after it terminates.

<span class="mw-page-title-main">The Portland Group</span> American technology company

PGI was a company that produced a set of commercially available Fortran, C and C++ compilers for high-performance computing systems. On July 29, 2013, Nvidia acquired The Portland Group, Inc. As of August 5, 2020, the "PGI Compilers and Tools" technology is a part of the Nvidia HPC SDK product available as a free download from Nvidia.

<span class="mw-page-title-main">QB64</span> IDE for the BASIC programming language

QB64 is a self-hosting BASIC compiler for Microsoft Windows, Linux and Mac OS X, designed to be compatible with Microsoft QBasic and QuickBASIC. QB64 is a transpiler to C++, which is integrated with a C++ compiler to provide compilation via C++ code and GCC optimization.

Open Watcom Assembler or WASM is an x86 assembler produced by Watcom, based on the Watcom Assembler found in Watcom C/C++ compiler and Watcom FORTRAN 77. Further development is being done on the 32- and 64-bit JWASM project, which more closely matches the syntax of Microsoft's assembler.

References

  1. "2024-09-03 Build · open-watcom/open-watcom-v2". GitHub.
  2. "Latest Release (June 2010) - Open Watcom". OpenWatcom.org wiki. Archived from the original on January 18, 2015.
  3. 1 2 "C Compiler Release Changes". Open Watcom. March 9, 2010. Archived from the original on February 3, 2015.
  4. 1 2 List of main differences of v1.9 to v2.0 Beta.
  5. 1 2 3 4 History - Open Watcom. OpenWatcom.com wiki.
  6. SYBASE INC. ANNOUNCES WATCOM C/C++ VERSION 11.0 Includes New Support For MMX Technology and Improved C++ language Support
  7. End of Life Notice for Watcom C/C++ Version 11.0
  8. Sybase to Open Source Watcom C/C++ and Fortran Compilers - SciTech Software Selected as Official Maintainer for the Open Watcom Project
  9. Free Software Foundation. "Various Licenses and Comments about Them". GNU Operating System. Retrieved Dec 23, 2014.
  10. Installing Open Watcom on Linux - Open Watcom. OpenWatcom.org wiki.
  11. "RotT was written in Watcom C++ v10.0 with the Rational Systems DOS/4GW extender".
  12. "How 5 years of burning ambition brought Retro City Rampage to DOS". Gamasutra. 10 July 2015.
  13. "#12011 (Compiling BIOS requires Open Watcom compiler)– Oracle VM VirtualBox". www.virtualbox.org. Retrieved 2017-06-17.
  14. "FreeDOS Spec". FreeDOS. Archived from the original on May 1, 2019.
  15. "Information for developers". arcanoae.com. Retrieved 2020-09-06.
  16. "Open Watcom V2 Fork".
  17. "Open Watcom V2 Fork Project on GitHub". GitHub .
  18. "pcdosasm.zip archive". 2010-07-27. Retrieved 2014-02-10. Modified Open Watcom C/C++ DOS 16-bit ..\STARTUP\DOS\CSTRT086.ASM code
  19. "C99 compliance in Open Watcom" . Retrieved 2020-11-30.
  20. ISO/IEC TR 24731-1; Extension to the C Library, Part 1: Bounds-checking interfaces.
  21. WG14 N1969 — "Updated Field Experience With Annex K — Bounds Checking Interfaces", Carlos O'Donell, Martin Sebor
  22. "Open Watcom Safer C Library" . Retrieved 2020-11-30.
  23. Apiki, Steven; Udell, Jon (February 1989). "Smoothing Out C". BYTE. pp. 170–186. Retrieved 2024-10-08.

Further reading

Current
Archives