[dmd-internals] What does POD imply for backends
Johannes Pfau
johannespfau at googlemail.com
Sat Feb 16 12:17:13 PST 2013
Am 16.02.2013 21:06, schrieb Walter Bright:
> A non-POD cannot be in registers because its address gets taken for
> constructors/destructors.
>
>
But creating temporary (bit) copies on the stack is still allowed for
non-PODs, right?
Wouldn't it be legal to still pass non-PODs in registers when calling
functions and only copying them back to the stack if the address is
needed? As we pass structs by value anyway, how could this be problematic?
--
Johannes Pfau
More information about the dmd-internals
mailing list