flat assembler
Message board for the users of flat assembler.

Index > Main > viewing preprocessor output

Author
Thread Post new topic Reply to topic
karl



Joined: 07 Feb 2006
Posts: 63
Location: South Africa
karl
hey all.

is there any way to see what has been done in the various stages of the preprocessor? for example, what if i wanted to see what the code looks like after the first pass? or maybe even ask it to unroll all the macros.

for example, i'm looking at this:
invoke ExitProcess,0

i can go search for "macro invoke" and then look at the definition, but i still won't be sure what the output is during my compilation because of conditionals.

wouldn't it be sweet if i could get fasm to dump out a text file that shows me what the macro gets resolved to?

i have an idea that it would be simple, since it's just various stages of memory (i think) during fasm's work.... maybe a dreaded command line argument? or if not, a compiler directive?
Post 07 Aug 2006, 11:16
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7734
Location: Kraków, Poland
Tomasz Grysztar
http://board.flatassembler.net/topic.php?t=4490
(The links to this thread are in both "Important/Interesting Threads" and in the Macroinstructions FAQ).
Post 07 Aug 2006, 11:22
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Tomasz Grysztar wrote:
(The links to this thread are in both "Important/Interesting Threads" and in the Macroinstructions FAQ).

which means, next time read FAQ first, then search, and THEN post Razz
Post 07 Aug 2006, 11:37
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
karl



Joined: 07 Feb 2006
Posts: 63
Location: South Africa
karl
awesome tomasz, thanks. sorry for not looking harder!
Post 07 Aug 2006, 11:37
View user's profile Send private message Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi
Search macro forum, or see macro-faq thread, there is addon to fasm-preprocessor which shows output of macros.
Post 07 Aug 2006, 11:37
View user's profile Send private message MSN Messenger 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 YouTube, Twitter.

Website powered by rwasa.