[Development] Passing QSize, QPoint, QTime and other small structs by value

Thiago Macieira thiago.macieira at intel.com
Fri Apr 7 17:21:20 CEST 2017


Em sexta-feira, 7 de abril de 2017, às 06:02:55 PDT, Lars Knoll escreveu:
> Those rules sound about right. We can do this nowadays, as x86 will become
> rather irrelevant for Qt 6 (where passing structs by reference would
> probably be better in most cases due to the limited amount of available
> registers).

x86 doesn't pass in registers anyway. The best you'd get is the elements of 
the struct pushed on the stack, instead of pushed elsewhere on the stack and 
an address to the stack pushed on the stack.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list