Re: [Dwarf-discuss] bit-string

2025-01-02 Thread Todd Allen via Dwarf-discuss
I'm a bit late to the party, but here goes... Our Ada compiler has support for this, described in terms of arrays. It's similar to the Pascal example that someone provided. If the only way to get a type like this in PL/I is with a bit string, then the producer could still describe this as an arra

Re: [Dwarf-discuss] bit-string

2024-12-18 Thread Thomas David Rivers via Dwarf-discuss
David Blaikie wrote: > > What sort of string-like behavior would one want on a bit-string? Seems > like array would be the better fit to me... > It's a language that originates in the late 60s - so there are some, "different" ideas than more contemporary languages. You can ask for sub-string

Re: [Dwarf-discuss] bit-string

2024-12-18 Thread David Blaikie via Dwarf-discuss
What sort of string-like behavior would one want on a bit-string? Seems like array would be the better fit to me... On Wed, Dec 18, 2024 at 9:03 AM pogo 59 via Dwarf-discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > My first thought would be that DW_TAG_string_type with a one-bit base > type,

Re: [Dwarf-discuss] bit-string

2024-12-18 Thread pogo 59 via Dwarf-discuss
My first thought would be that DW_TAG_string_type with a one-bit base type, but it's not clear that the other attributes would be interpreted in a way that correctly navigated the bit string. You could try using DW_TAG_packed_type pointing to a DW_TAG_string_type, in the hopes that consumers would

[Dwarf-discuss] bit-string

2024-12-18 Thread Thomas David Rivers via Dwarf-discuss
PL/I has the concept of a "string", which can be a fixed-length (possibly not known at compile time), or a fixed size with a 4-byte or 2-byte runtime length prefix, or, depending on the consituents, a NULL (zero-byte) terminated string. For "character-like" strings, the constituents can be 1-byt