[Dwarf-Discuss] Vector base types...
eager at eagercon.com
Mon Oct 31 11:17:51 PDT 2011
On 10/31/2011 10:30 AM, Relph, Richard wrote:
> Is there a convention for representing vector base types in a language?
> Our language (OpenCL) has 2, 3, 4, 8, and 16 element vectors of each of the normal C base types and
> we’re currently representing them in an ad hoc way. We’d like to follow whatever convention exists
> for doing this, but we haven’t figured out what that is. Setting DW_AT_byte_size to the size of one
> element begs the question of how many, and setting it to the size of the type itself is ambiguous
> (unless you peek at the name… which we are resisting, though perhaps that “right way”.) A char4,
> short2, and int all have 4 bytes and the same encoding.
Is there a functional difference between an array and a vector?
Michael Eager eager at eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Dwarf-Discuss