flat assembler
Message board for the users of flat assembler.

Index > Main > epiloguedef: also embracing pop ebp?

Author
Thread Post new topic Reply to topic
flat_user



Joined: 01 Jun 2010
Posts: 13
flat_user 16 Jun 2010, 23:22
As for the epiloguedef-macro, wouldn't the following be faster some cycles in the specific cases (when there are no locals)?
e.g. when calling such a stub in a loop with 20 iterations it was about 15 cycles faster to not do the unnecessary esp = ebp with leave (measured randomly on some lame ass cpu with rdtsc; I'm unfamiliar with low-leveling and hardware)
Quote:
if localbytes
leave
else if parmbytes
pop ebp
end if
Post 16 Jun 2010, 23:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.