Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread Jakub Jelinek via Dwarf-discuss
On Fri, Mar 28, 2025 at 10:24:25AM -0700, Cary Coutant wrote: > > > > Yeah. Strings are more expensive than just numbers (which can be done > > through DW_FORM_implicit_const) and for strings you'd need some agreed way > > how to compare what is newer and what is older. > > strverscmp, rpmvercmp,

Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread Cary Coutant via Dwarf-discuss
> > Yeah. Strings are more expensive than just numbers (which can be done > through DW_FORM_implicit_const) and for strings you'd need some agreed way > how to compare what is newer and what is older. > strverscmp, rpmvercmp, ... (many choices, what is the right segmented > string > comparison)? >

Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread David Blaikie via Dwarf-discuss
On Fri, Mar 28, 2025 at 9:14 AM David Anderson wrote: > 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

Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread David Anderson via Dwarf-discuss
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 - "A DW_AT_language_version attribute may be specif

Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread Jakub Jelinek via Dwarf-discuss
On Fri, Mar 28, 2025 at 08:30:48AM -0700, David Blaikie via Dwarf-discuss 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 > - "A DW_AT_language_version attribute may be spec

Re: [Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread David Blaikie via Dwarf-discuss
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 - "A DW_AT_language_version attribute may be specified whose constant value is an integer code indicating the version of the source language

[Dwarf-discuss] The new Version Scheme for V6.

2025-03-28 Thread David Anderson via Dwarf-discuss
VVMMPP Major version number (VV) × 10,000 + minor version number (MM) × 100 + patch number (PP) (e.g., 30607 for version 3.6.7) https://dwarfstd.org/languages.html So I'm puzzled. As normally represented 3.101.198 is easily understood, but as shown in the explanation line above ... what i