Event struct via registers
Vitaliy Fadeev
vital.fadeev at gmail.com
Sat Aug 10 08:18:54 UTC 2024
On Saturday, 10 August 2024 at 08:06:42 UTC, IchorDev wrote:
> On Saturday, 10 August 2024 at 07:46:46 UTC, Vitaliy Fadeev
> wrote:
>> [...]
>
> This depends on the calling convention used by your compiler
> and on your CPU architecture. 64 bits is already 2 data
> registers on a 32-bit CPU. There are also many calling
> conventions that allow multiple data registers to be used when
> passing structs around.
>
> Do you really need to avoid them being passed on the stack
> though?
Yes.
> Is your application highly performance critical?
Many input event + many internal ui events -> many calls * many
objects.
Yes, I like the fast, responsive interface on old hardware (as
B970 CPU).
More information about the Digitalmars-d-learn
mailing list