[Dwarf-discuss] Constant expressions in locations list

Marcel Mettes marcelm@altium.nl
Thu Mar 8 09:34:16 GMT 2007


> History note:  We really intended the OP evaluation
> stack to have simply 'address size integers'
> and avoid such a 'type' system entirely. 
> Even avoiding signed/unsigned issues (as that's not a  problem
> with twos-complement). 
> Not as an oversight, but as a design decision.
>
> Whether that simple address-size-integer
> value stack  is still sufficient is open to discussion, but
> any type system introduces all the 'conversion' issues.
>
> David Anderson

Perhaps a reference to another DIE or Attribute can be used, where the 
actual constant value is to be found?

I wonder whether constants are limited to scalars or that entire arrays 
or structs can be constant too.

Marcel Mettes




More information about the Dwarf-discuss mailing list