flat assembler
Message board for the users of flat assembler.
Index
> Windows > Register preservation in threads |
Author |
|
Goplat 03 Nov 2006, 03:10
Thread procedures don't need to save the registers, but if you're worried about that overhead you might want to consider the time it takes to create and destroy a thread, which is likely far more.
|
|||
03 Nov 2006, 03:10 |
|
r22 03 Nov 2006, 04:01
Thanks thats what I figured.
This was more of a programming standard and convention question than an optimization question. Quote:
Although avoiding Code: push rbp rbx rsi rdi r12 r13 r14 r15 movdqa [rsp+??],xmm6 - xmm15 ... movdqa xmm6 - xmm15, [rsp+??] pop r15 r14 r13 r12 rdi rsi rbx rbp Could be considered a significant 'size' optimization. |
|||
03 Nov 2006, 04:01 |
|
Maverick 03 Nov 2006, 07:03
Looks like the 680x0, with the difference that it did it in hardware
|
|||
03 Nov 2006, 07:03 |
|
f0dder 03 Nov 2006, 08:18
Dunno if you need register preservation in the thread. If you "ret" you might - no way to tell whether your code would break on a future service pack. If you "call ExitThread" you probably don't, but perhaps that's more overhead than preservation + ret.
|
|||
03 Nov 2006, 08:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.