News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

EC2000 - 64 Bit - Shadow stack space

Started by K_F, December 28, 2017, 05:49:21 PM

Previous topic - Next topic

K_F

Hi Ramon,
I'm still happily playing with EC  :t

A question on the ECInvoke macro :- Does it copy the 4 parameters into the stack shadow space, or does it leave that up to the programmer ? This wasn't clear in the EC help file.

It would be nice to leave that up to the programmer as it would give one more flexibility in manipulating registers etc.., saving a few instruction times.

Thanks
Van
:t :t
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

rsala

Hi Van,

ECInvoke works perfectly well keeping always the stack 16-byte aligned and accepting all type of parameters (which are converted to QWORDS if they are not), but it DOES NOT COPY the 4 parameters into the stack shadow space.

The ECInvoke macro works under the WIN64 specifications, where the invoking code is not responsible for copying the parameters into the stack shadow space, in fact it should not copy them.

Regards,

Ramon
EC coder