[Dwarf-discuss] The new Version Scheme for V6.
David Anderson
davea42@gmail.com
Fri Mar 28 16:14:02 GMT 2025
On 3/28/25 08:30, David Blaikie wrote:
> I believe the intent is that version numbers are able to be compared
> numerically.
>
> In any case, they are numbers per https://dwarfstd.org/
> issues/210419.1.html <https://dwarfstd.org/issues/210419.1.html> - "A
> DW_AT_language_version attribute may be specified whose constant value
> is an integer code indicating the version of the source language."
>
My point is that attempting to use an integer is a bad fit to semantic
versioning and breaks down in real cases.
I suppose the attraction of an integer is that the integer will be fewer
bytes than an ascii representation.
The chances of compiler versions violating the default
field size assumptions seem pretty small, I admit.
Never mind.
DavidA
More information about the Dwarf-discuss
mailing list