flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > [patch] proc macro: omit frame pointer

Author
Thread Post new topic Reply to topic
dunkaist



Joined: 31 Jul 2015
Posts: 14
Hello,

I attached a diff that adds omitfp param to well known proc macro. It makes procedures to address arguments and local variables via esp. Enjoy your ebp! Local variables are cleaned up with lea, not add, preserving flags at exit.

Hints and code review are welcome. Happy coding.


Description:
Download
Filename: proc32.patch.txt
Filesize: 3.34 KB
Downloaded: 25 Time(s)

Post 15 Jun 2018, 21:13
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6873
Location: Kraków, Poland
Instead of patching the basic macro you can simply make an add-on by re-defining the prologue@proc, epilogue@proc and close@proc variables. See the thread about customizing "proc". The standard proc64.inc even contains additional variants to choose from (static_rsp_...).
Post 15 Jun 2018, 21:40
View user's profile Send private message Visit poster's website Reply with quote
dunkaist



Joined: 31 Jul 2015
Posts: 14
Oh, I only saw this thread: https://board.flatassembler.net/topic.php?t=11558
Thank you for the pointer, Tomasz, I learned another bit of fasm today.
Post 15 Jun 2018, 22:04
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 © 2004-2018, Tomasz Grysztar.

Powered by rwasa.