Re:Examining Windows 1.0 Hello.c
by dblohm7 on Monday May 25, 2020 @10:00PM
(#23306762)
PASCAL != stdcall
[ Parent
| on HN ]
Re:Examining Windows 1.0 Hello.c
by NCommander on Tuesday May 26, 2020 @02:23AM
(#23308016)
It does in Microsoft's world who #define it like that.
As I remember, and if I'm wrong, I'll correct it, the different on 32-bit was that stdcall and pascal change the order of how arguments are injected.
That's because PASCAL was used for 16-bit Windows. They only define it as stdcall in 32-bit and 64-bit compilers for source compatibility reasons.
The 16-bit Windows SDK does not define PASCAL as stdcall.
PASCAL pushes arguments left to right. stdcall pushes arguments right to left.