flat assembler
Message board for the users of flat assembler.
Index
> Main > What is mean ? proc Main c audioMaster |
Author |
|
Roman 12 Oct 2022, 06:15
Fasmw 1.73
I found example, compile ok for 64 bits. Code: proc Main c audioMaster ret endp But what is c ? I expected audioMaster is stack 8 bytes. |
|||
12 Oct 2022, 06:15 |
|
ProMiNick 12 Oct 2022, 07:01
There is no C-calling convention for x64.
only fastcall calling convention. keyword C is ignored. fastcall calling conventions only varies according to OS (windows:shadowregs, params via rcx,rdx,r8,r9,stack(stack cleared by callee) or linux:redzone , params via rdi,rsi,rcx,rdx,r8,r9, stack(stack cleared by caller)) |
|||
12 Oct 2022, 07:01 |
|
revolution 12 Oct 2022, 08:21
I missed the 64-bit part.
In proc64.inc the same flag parameter is defined in define@proc but the epilogue ignores it. So it makes no difference in 64-bit mode, the binary code output will be exactly the same. Code: macro epiloguedef procname,flag,parmbytes,localbytes,reglist { irps reg, reglist \{ reverse pop reg \} leave retn } |
|||
12 Oct 2022, 08:21 |
|
macomics 12 Oct 2022, 13:12
revolution wrote:
|
|||
12 Oct 2022, 13:12 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.