Issue 210115.1: Requesting a DW_lang_ code for the Netwide Assembler (NASM)

Author: H. Peter Anvin
Champion:
Date submitted: 2021-01-15
Date revised: 2023-04-19
Date closed: 2023-04-11
Type: Enhancement
Status: Accepted with modifications
DWARF Version: 6

Section 7.12, pg 230

I would like to request the assignment of a DW_LANG_ constant for the Netwide Assembler (NASM). Currently we are using 0x8001, DW_LANG_lo_user+1, which is documented in most tools as DW_LANG_Mips_Assember. This is clearly bogus, and fails to distinguish NASM from other kinds of assemblers.

Rather than "squatting" on a user code, having one officially assigned is always preferable.

The Netwide Assembler can be found at https://www.nasm.us/, and is widely used.

Many thanks.


2023-04-11: Accepted with modifications. We will allocate a language code for general assembly language code, but not for a specific assembler. Also added a DWARF v6 language name.

2023-04-19: New language codes (for v5 and v6):

DW_LANG_Assembly     0x0031
DW_LNAME_Assembly    0x001d