flat assembler
Message board for the users of flat assembler.
Index
> Main > output fasm's preprocessor passes to text file |
Author |
|
narada 23 Jul 2009, 07:57
P.S. & BTW: Tomasz - it's like TomasZ == ASCII-Z ??? )))
|
|||
23 Jul 2009, 07:57 |
|
khanh1984 24 Jul 2009, 07:24
Narada, what are you trying to say?
|
|||
24 Jul 2009, 07:24 |
|
vid 24 Jul 2009, 10:09
khanh: FASM can't do this right now. But how exactly do you imagine that output to look like. Can you give as an example of such output?
|
|||
24 Jul 2009, 10:09 |
|
LocoDelAssembly 24 Jul 2009, 21:15
Note however that there is no such thing as multiple preprocessor passes, preprocessing is always carried in a single pass. It is the assembler stage which may take several passes, however.
|
|||
24 Jul 2009, 21:15 |
|
neville 25 Jul 2009, 02:23
khanh1984:
As LocoDA has said it is the assembler module of fasm which performs multiple passes to resolve all variable and address references etc. Before the assembler is invoked 3 other modules are invoked (if my memory serves me correctly): - the init_memory module does what it says - the preprocessor module translates the source text into a standard form and expands all macros etc - the parser module tokenises the preprocessor output for more efficient assembly You can see all this by examining the fasm sources, and then you could modify the sources to produce whatever extra output you want. I have modified fasm to run in my own operating system (see also http://board.flatassembler.net/topic.php?t=9483) and integrated it into my own memory-based IDE. You can view all the intermediate results produced by fasm (preprocessor output etc) from within my IDE. _________________ FAMOS - the first memory operating system |
|||
25 Jul 2009, 02:23 |
|
khanh1984 27 Jul 2009, 02:51
Sorry 'cause I really got confused.
so the preprocessor is done in 1 stage. However, in manual when refering to backslash \. It states that in preprocessor, the backslash is removed and that is all it does. So I guess the preprocessor also does some forward and backward resolving all directives. What I want is to observe the translation of preprocessor each time it suceeds resolving one macro, one structure... or any directives. Maybe too much requests but is it possible ? or more easily, output the preprocessor'stage (before passing to assembly'stage) |
|||
27 Jul 2009, 02:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.