flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Feature request: Profiling

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Hi!
After looking at this thread http://smorgasbordet.com/phpBB2/viewtopic.php?t=1054 at Pelles C Forum, I realized how profiling is usefull.
Any chance of FASM having similar feature?
Post 28 Oct 2006, 00:04
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
i plan to add profiling macros to FASMLIB by time. i have already done this on my late project. you just overload "proc", "ret", and calls macro to do right things Wink
Post 28 Oct 2006, 00:52
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Goplat



Joined: 15 Sep 2006
Posts: 181
Goplat
How would profiling work in assembly? In C, it's usually done by the compiler inserting calls to the profiling routines at the beginning and end of each function. In asm there's no way to know where those are: a function entry point is just a label, and it's possible to exit a function with a jmp. There may even be multiple entry or exit points.
Post 28 Oct 2006, 00:52
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Goplat: well, if you use "proc" macros, and "ret" macros, and "stdcall"/"invoke"/"ccall" macros...
Post 28 Oct 2006, 10:58
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.