flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
MazeGen 19 May 2009, 06:17
Madis731 wrote: ...but in 64-bit mode 32-bit registers are not recommended... What does this mean exactly? I don't remember recommendation like this in the fastcall documentation. |
|||
![]() |
|
Madis731 19 May 2009, 06:50
Sorry, not the fastcall recommendation, but 64-bit addressing:
Code: mov eax,[ebp+eax*4] ; is not recommended mov eax,[rbp+rax*4] ; is recommended and even enforced i.e. Intel C-compiler in asm {} blocks. |
|||
![]() |
|
revolution 19 May 2009, 06:57
That is like in Win32 doing this:
Code: format PE GUI ... ... MyString: "Hello cruel world!",13,10,0 ... mov ebx,MyString mov al,[bx] ... |
|||
![]() |
|
Madis731 19 May 2009, 08:03
Code: ;proc64.inc @ 144,1 - else if opcode = 0FFh + else if opcode = 0FFh | opcode = 67h ![]() |
|||
![]() |
|
asmfan 24 Jun 2009, 08:23
Relatively this "simple" macro for win64 calling convention - the convention itself was made with respect to ease some obvious things like constant stack pointer moving which is absent in win64 CC but this macro revert us to x32 disadvantages. despite commitiong whole stack on entry equal to uneven max arg count of leaves-function *8 if playing with stack each time API's called. Suggest removing this macro definition till or if it will count args for leaf-func to balance stack once.
|
|||
![]() |
|
Tomasz Grysztar 24 Jun 2009, 10:36
asmfan wrote: Relatively this "simple" macro for win64 calling convention - the convention itself was made with respect to ease some obvious things like constant stack pointer moving which is absent in win64 CC but this macro revert us to x32 disadvantages. despite commitiong whole stack on entry equal to uneven max arg count of leaves-function *8 if playing with stack each time API's called. Suggest removing this macro definition till or if it will count args for leaf-func to balance stack once. Please read this thread: http://board.flatassembler.net/topic.php?t=4209 Perhaps you'd like to continue the discussion there. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.