DWARF Standard


HOME
SPECIFICATIONS
FAQ
ISSUES



DWARF v6 Language and Version Codes


Issue 210419.1 introduced a way to separately specify languages and versions which is expected to be adopted for DWARF Version 6. As described in the proposal, each supported language has a specified value for DW_AT_language_name and each version of that language has a unique DW_AT_language_version.

New language codes and version codes may be requested by submitting a request on the Public Comment page.

Language Language Code (DW_AT_language_name) Value Default Lower Bound Version Codes (DW_AT_language_version)
ISO Ada †DW_LNAME_Ada0x00011
BLISSDW_LNAME_BLISS0x00020
C (K&R and ISO)DW_LNAME_C0x00030 K&R 000000
ISO C++DW_LNAME_C_plus_plus0x00040 C++98 199711
C++11 201103
C++14 201402
C++17 201703
C++20 202002
ISO Cobol †DW_LNAME_Cobol0x00051
CrystalDW_LNAME_Crystal0x00060
DDW_LNAME_D0x00070
DylanDW_LNAME_Dylan0x00080
ISO FortranDW_LNAME_Fortran0x00091
Go †DW_LNAME_Go0x000a0
Haskell †DW_LNAME_Haskell0x000b0
HIPDW_LNAME_HIP0x001d0
JavaDW_LNAME_Java0x000c0
JuliaDW_LNAME_Julia0x000d1
KotlinDW_LNAME_Kotlin0x000e0
Modula 2DW_LNAME_Modula20x000f1
Modula 3 †DW_LNAME_Modula30x00101
Ojective CDW_LNAME_ObjC0x00110
Ojective C++DW_LNAME_ObjC_plus_plus0x00120
OCamlDW_LNAME_OCaml0x00130
OpenCL †DW_LNAME_OpenCL0x00140
ISO PascalDW_LNAME_Pascal0x00151
ANSI PL/I †DW_LNAME_PLI0x00161
Python †DW_LNAME_Python0x00170
RenderScriptDW_LNAME_RenderScript0x00180
RustDW_LNAME_Rust0x00190
SwiftDW_LNAME_Swift0x001a0
Unified Parallel C (UPC)DW_LNAME_UPC0x001b0
ZigDW_LNAME_Zig0x001c0


Value Language Code (DW_AT_language_name) Value Language Code (DW_AT_language_name)
0x0001DW_LNAME_Ada 0x0002DW_LNAME_BLISS
0x0003DW_LNAME_C 0x0004DW_LNAME_C_plus_plus
0x0005DW_LNAME_Cobol 0x0006DW_LNAME_Crystal
0x0007DW_LNAME_D 0x0008DW_LNAME_Dylan
0x0009DW_LNAME_Fortran 0x000aDW_LNAME_Go
0x000bDW_LNAME_Haskell 0x000cDW_LNAME_Java
0x000dDW_LNAME_Julia 0x000eDW_LNAME_Kotlin
0x000fDW_LNAME_Modula2 0x0010DW_LNAME_Modula3
0x0011DW_LNAME_ObjC 0x0012DW_LNAME_ObjC_plus_plus
0x0013DW_LNAME_OCaml 0x0014DW_LNAME_OpenCL
0x0015DW_LNAME_Pascal 0x0016DW_LNAME_PLI
0x0017DW_LNAME_Python 0x0018DW_LNAME_RenderScript
0x0019DW_LNAME_Rust 0x001aDW_LNAME_Swift
0x001bDW_LNAME_UPC 0x001cDW_LNAME_Zig
0x001dDW_LNAME_HIP


† -- Names marked with † and their associated values are reserved, but the languages they represent are not well supported.

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2007-2022 by DWARF Standards Committee.