World Library  
Flag as Inappropriate
Email this Article

Open Watcom Assembler

Article Id: WHEBN0025984992
Reproduction Date:

Title: Open Watcom Assembler  
Author: World Heritage Encyclopedia
Language: English
Subject: Direction flag, Zero flag, Yasm, Netwide Assembler, Low-level programming language
Publisher: World Heritage Encyclopedia

Open Watcom Assembler

Open Watcom Assembler
Original author(s) Open Watcom Assembler
Operating system DOS for x86-based PCs, Microsoft Windows, GNU/Linux for x86-based PCs, OS/2 for x86-based PCs, FreeBSD for x86-based PCs.
Available in English
Type x86 assembler
Website .com.openwatcomwww

Open Watcom Assembler or WASM is an x86 assembler produced by Watcom and included as part of the Watcom C/C++ compiler.[1][2] Further development is being done on the 32- and 64-bit JWASM project,[3] which more closely matches the syntax of Microsoft's assembler.[4]

There are experimental assemblers for PowerPC, Alpha AXP, and MIPS.[5]

Technical details


  • Native support for output formats Intel OMF output formats
  • Supports Intel x86 (Pentium MMX, Pentium III-4, 3DNow!, SSE and SSE2) instruction sets.
  • Supports Microsoft macro assembler (MASM) 5 and 6 syntax (incomplete).[5]


There is an associated Watcom disassembler, wdis. The assembler does not have listing facilities; instead the use of wdis for generating listings is recommended.[6] wdis can read OMF, COFF and ELF object files and PE and ELF executables. It supports 16-bit and 32-bit x86 instruction set including MMX, 3DNow!, SSE, SSE2, and SSE3. Support for PowerPC, Alpha AXP, MIPS, and SPARC V8 instruction sets is also built in.[7]


It is a fork of Wasm by Japheth with following features:

  • Native support for output formats Intel OMF (16/32-bit), MS Coff (32-bit and 64-bit), Elf (32-bit and 64-bit), Bin and DOS MZ.
  • Precompiled JWasm binaries are available for DOS, Windows and Linux. For OS/2 and FreeBSD, makefiles are supplied.
  • Supports Intel x86 (8086, 80186, 80286, 80386, 80486, Pentium, Pentium Pro), x86-64 instruction sets with SIMD (MMX, 3DNow!, SSE, SSE2, SSE3 and SSSE3, SSE4.1/2 (since Jwasm), AVX (since JWasm 2.06), VMX (Intel VT-x; AMD SVM, the latter though already implemented, currently still inactive) extensions (since JWasm 2.09)).
  • JWasm is written in C. The source is portable and has successfully been tested with Open Watcom, MS VC, GCC and more.
  • On Windows, JWasm can be used with both Win32Inc and Masm32. Since v2.01, it will also work with Sven B. Schreiber's SBS WALK32 Win32 Assembly Language Kit[8]
  • C header files can be converted to include files for JWasm with Japheth's own dedicated h2incX.
  • JWasm's source code is released under the Sybase Open Watcom Public License, which allows free commercial and non-commercial use.
  • Fully supports Microsoft macro assembler 6 syntax, all MASM 8 instructions sets.


  1. ^ Randall Hyde. "WASM: The Open Watcom Assembler". Retrieved 2010-02-02. 
  2. ^ Leiterman, James (2005). "MASM vs. NASM vs. TASM vs. WASM". 32/64-bit 80x86 assembly language architecture. Wordware Publishing, Inc. p. 481.  
  3. ^ JWASM project page
  4. ^ Fog, Agner (2009), Optimizing subroutines in assembly language (2009-09-26 ed.), p. 13 
  5. ^ a b Open Watcom website: Assembler
  6. ^ OpenWatcom: "No listing files are generated [by the assembler]. Producing full listings may be a waste of effort because wdis (the Open Watcom disassembler) does a very good job. However, it could be extremely helpful to produce a dump of the internal symbol table the way MASM does, especially for diagnostic purposes."
  7. ^ Open Watcom website: Disassembler
  8. ^ The 1996 "WALK32 consists of the following main components:
    • A full-featured PE (Portable Executable) file linker called W32Link.
    • A main include file, containing Win32 constant, type, and structure definitions.
    • Another include file, containing the application and DLL startup source code.
    • Segment and PE section management macros.
    • Macros related to Unicode support.
    • Several demo applications and DLL’s.
    • A collection of programming utilities for various purposes." walk32.doc in

External links

  • wasm at
  • JWASM, a 32/64 bit assembler based on WASM with syntax similar to MASM.
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.