![]() |
AW: [Optimiert] Explode Prozedur - Reloaded (Ersatz für CodeLib)
Zitat:
|
AW: [Optimiert] Explode Prozedur - Reloaded (Ersatz für CodeLib)
Delphi lagert es nur einmal aus und es wird dann vorm RET auf EAX kopiert.
Result wird in soeinem Fall einfach wie eine lokale Variable behandelt und erst zum Schluß als "Result" gesetzt. Es sollte also nicht unbedingt extreme Einbusen geben.
Code:
function Test: Integer;
begin Result := 123; asm mov eax, 789; end; end; mov edx,$0000007b // Result := 123; mov eax,$00000315 // asm mov eax, 789; end; mov eax,edx // end; ret |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:05 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz